[英]How to deal with error message - Missing required dependencies ['numpy'] - using pycharm and anacoda
I'm learning python and want this code to work. 我正在学习python,并希望此代码能正常工作。
import pandas
df =pandas.DataFrame([[2,4,6],[10,20,30]])
print(df)
This is what I get: 这是我得到的:
File "C:\Users\User\Anaconda3\lib\site-packages\pandas\__init__.py", line 19, in <module>
"Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']
I'm using pycharm with anaconda environment. 我在anaconda环境中使用pycharm。 Hopefully I've set the environment and interpreter up right. 希望我已经设置好环境和口译员了。 It says I have numpy version 1.16.2 installed, however it won't let me upgrade to version 1.17.0 它说我已经安装了numpy版本1.16.2,但是不会让我升级到版本1.17.0
Tried installing, uninstalling and upgrading through packages and terminal and upgraded pip. 尝试通过软件包和终端以及升级的pip进行安装,卸载和升级。 This is what I get: 这是我得到的:
Installing collected packages: numpy
Found existing installation: numpy 1.16.4
Uninstalling numpy-1.16.4:
Successfully uninstalled numpy-1.16.4
Successfully installed numpy-1.17.0
WARNING: You are using pip version 19.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\User\Documents\Python>python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/62/ca/94d32a6516ed197a491d17d46595ce58a83cbb2fca280414e57cd86b84dc/pip-19.2.1-py2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 114kB/s
Installing collected packages: pip
Found existing installation: pip 19.1.1
Uninstalling pip-19.1.1:
Successfully uninstalled pip-19.1.1
Successfully installed pip-19.2.1
I'm very new to all this and probably doing something wrong, someone please help. 我对这一切都很陌生,可能做错了什么,请有人帮忙。
I would advise you to try and use the Anaconda GUI Navigator, available through the standard download of Anaconda Software Bundle. 我建议您尝试使用Anaconda GUI导航器,该导航器可通过Anaconda Software Bundle的标准下载获得。
You can easily manipulate virtual environments and install/uninstall different packages, using the self-explanatory GUI. 您可以使用不言自明的GUI轻松操作虚拟环境并安装/卸载不同的软件包。 I found it very simple and a good way to start using Anaconda and Python: 我发现它非常简单,也是开始使用Anaconda和Python的好方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.