不知道有没有人试过和水蟒通灵。我在url link中创建了一个环境 Intel Python
但是,当我尝试导入pytables时,会得到:-
(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'
这很奇怪,因为我让它在非intelpython环境下运行,所以我尝试检查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$
所以它安装在环境中应该可以工作,有什么帮助吗?谢谢
您正在从
/opt/anaconda/bin
运行python可执行文件,但是您有一个激活的环境(intelpython)
。更改到其他目录,例如~
,确保PATH
上的第一个python
是/opt/anaconda3/envs/intelpython/bin/python
,然后重试导入。你知道吗相关问题 更多 >
编程相关推荐