无法使用intelpython导入pytables

2024-09-27 17:49:45 发布

您现在位置:Python中文网/ 问答频道 /正文

不知道有没有人试过和水蟒通灵。我在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$ 

所以它安装在环境中应该可以工作,有什么帮助吗?谢谢


Tags: infortablesbin环境dcpytablesmodule
1条回答
网友
1楼 · 发布于 2024-09-27 17:49:45

您正在从/opt/anaconda/bin运行python可执行文件,但是您有一个激活的环境(intelpython)。更改到其他目录,例如~,确保PATH上的第一个python/opt/anaconda3/envs/intelpython/bin/python,然后重试导入。你知道吗

相关问题 更多 >

    热门问题