当我运行pythonshell时,发生了一些错误

2024-10-02 20:29:47 发布

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

我的python是2.7。scipy为0.18.1

Traceback (most recent call last):
File "C:\Users\59243\Desktop\icadenoise_dev\fastica.py", line 7, in <module>
from scipy.linalg import sqrtm, inv
ImportError: No module named scipy.linalg
>>> 

Tags: pydevmostscipycallusersfasticafile
1条回答
网友
1楼 · 发布于 2024-10-02 20:29:47

当我使用conda install scipy时, 我已经安装了所有请求的程序包

位于C:\Users\59243的环境中的包:

你知道吗# scipy 0.18.1 np112py27\ U 1`

但是当我使用pip install scipyCommand "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\59243\\appdata\\local\\temp\\pip-build-gern63\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install record c:\users\59243\appdata\local\temp\pip-7zqhhb-record\install-record.txt single-version-externally-managed compile" failed with error code 1 in c:\users\59243\appdata\local\temp\pip-build-gern63\scipy\错误出现了

相关问题 更多 >