[英]Registry points to wrong python path(C:\Python27\ArcGIS) instead of (C:\Python27) when installing a Py Package(Scipy)
[英]How to install packages (or use existing packages) for C:\Python27 when these are already installed in C:\path\Anaconda3\…?
请考虑:我不是CS专家,并且对路径变量,全局环境等经验有限。但是,请告诉我是否可以通过为Python27添加新的路径变量来解决我的问题。 顺便说一句,我正在使用Windows10。
在我的PC上,我下载了带有python3,Jupyter,spyder等的Anaconda ...
Anaconda很方便,并且CMD命令“ python”将启动
Python 3.6.0 | 水蟒4.3.1
运行Python36没问题,Anaconda发行版包含使用Python所需的一切。 但是,我也希望能够为我从python.org网站独立下载的Python27解释器导入(或使用现有的)软件包。 运行命令
(CMD) > pip install scipy
回报
Requirement already satisfied: scipy in c:\path\anaconda3\lib\site-packages
在Python27中运行命令
>>> from scipy import *
回报
ImportError: No module named scipy
请理解我的问题:我希望保留我的Anaconda-python 3x发行版,但是除此之外,我还希望能够在全部范围内使用python 2x(所有软件包)
在这里,我将分享我安装scipy所做的工作。
我的电脑配置为
windows-7 64-bit & python 2.7
7zip
压缩文件(也可以使用任何拉链,例如winrar) scipy
文件夹并将其粘贴到C:\\Python27\\Lib\\site-packages
(或将其放置在PC中确切的位置,如..\\..\\Lib\\site-packages
) 注意:必须安装numpy的
first
以同样的方式安装SciPy的面前。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.