我有两个python3位置。一个在这里
“C:\Users\Ryano\AppData\Local\Programs\Python\Python37-32”
另一个和水蟒有关
“C:\Users\Ryano\Anaconda3”
我希望使用anaconda3python版本在命令提示符下运行一个使用numpy包的.py文件。我去进口纽比,它不认识它:C:\Users\Ryano\Anaconda3>python
Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
import numpy
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
所以我把numpy包安装到Anaconda 3版本的python上,然后弹出一个错误:C:\Users\Ryano\Anaconda3\Scripts>pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/00/0e/5a8c34adb97fc1cd6636d78050e575945e874c8516d501421d5a0f377a6c/numpy-1.15.4-cp37-none-win_amd64.whl
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\users\ryano\anaconda3\lib\site-packages\html5lib-1.0.1.dist-info\METADATA'
看看其他类似的帖子,我找不到任何适合我电脑的解决方案。实际上,我在使用pip安装时遇到了问题。在