不知道有没有人尝试过IntelPython和蟒蛇。我创建了一个环境,就像在url链接Intel Python中一样
但是,当我尝试导入pytable时,我得到:-
(intelpython) dc@dcpctw:/opt/anaconda3/bin$ python
Python 3.5.3 |Intel Corporation| (default, Apr 27 2017, 18:08:47)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Intel(R) Distribution for Python is brought to you by Intel Corporation.
Please check out: https://software.intel.com/en-us/python-distribution
>>> import tables
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'tables'这很奇怪,因为我让它在非intel python环境下运行,所以我尝试检查pytables是否安装在intelpython环境下。
(intelpython) dc@dcpctw:/opt/anaconda3/bin$ sudo ./conda upgrade pytables
Fetching package metadata ...........
Solving package specifications: .
# All requested packages already installed.
# packages in environment at /opt/anaconda3:
#
pytables 3.3.0 np112py35_intel_2 [intel] intel
(intelpython) dc@dcpctw:/opt/anaconda3/bin$ 所以它安装在环境中,应该可以工作,有什么帮助吗?谢谢
发布于 2017-08-11 02:36:59
您正在从/opt/anaconda/bin运行python可执行文件,但是您有一个激活的(intelpython)环境。切换到其他目录,例如~,确保PATH上的第一个python为/opt/anaconda3/envs/intelpython/bin/python,然后再次尝试导入。
https://stackoverflow.com/questions/45349406
复制相似问题