2017-02-15 91 views
0

我安裝了anaconda,我的python腳本甚至顯示了這個錯誤,我安裝了numpy;Anaconda3和defaualt Ubuntu中的python衝突16.04

Traceback (most recent call last): File "rbm_chords.py", line 3, in import numpy as np File "/home/sonu/anaconda3/envs/my_env/lib/python2.7/site-packages/numpy/init.py", line 146, in from . import add_newdocs File "/home/sonu/anaconda3/envs/my_env/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in from numpy.lib import add_newdoc File "/home/sonu/anaconda3/envs/my_env/lib/python2.7/site-packages/numpy/lib/init.py", line 8, in from .type_check import * File "/home/sonu/anaconda3/envs/my_env/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in import numpy.core.numeric as _nx File "/home/sonu/anaconda3/envs/my_env/lib/python2.7/site-packages/numpy/core/init.py", line 24, in raise ImportError(msg) ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

有什麼辦法可以在特定的環境中選擇conda的所有庫。 我通過網絡搜索後得到的唯一建議是卸載任何人。我的腳本是在Python 2.7中工作,並與默認的Python完美工作。

+0

任何機會利用你有沒有'PIP '安裝'numpy'? –

+0

我在conda環境中使用** conda -f安裝numpy **和** conda -f安裝numpy **。 –

+0

conda -f? -f做什麼?任何鏈接?我在幫助信息中找不到它。 –

回答