PyCharm應用conda自己創建的虛擬環境里面的tensorflow1.3.0版本報錯;
C:\ProgramData\Anaconda3\envs\python36tfgpu\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
…
報錯原因是Numpy版本過高為1.19;
因此,安裝低版本的Numpy就不會報錯,安裝程序自動卸載高版本;
首先,進入自己創建的虛擬環境 >activate xxx(環境名字)
然后,安裝指令為 >pip install numpy==1.16.4
執行即可,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/252073.html
標籤:AI
