Python 如何在pycharm中安装pandas
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45548875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install pandas in pycharm
提问by quant
I am trying to install the pandas
package in pycharm. I get the following error: unable to find vcvarsall.bat
(i tried to install via the cmd
but also via the project interpreter
). I tried to installWSDK according to herebut it did not work. I also tried the instructions in the video. Lastly i tried downloadingthe gcc binary according.
我正在尝试pandas
在 pycharm 中安装该软件包。我收到以下错误:(unable to find vcvarsall.bat
我尝试通过 安装,cmd
但也通过project interpreter
)。我尝试根据此处安装WSDK,但没有成功。我也尝试了视频中的说明。最后,我尝试根据下载gcc 二进制文件。
None of these worked. Any ideas ? I am using Windows 10, my python version is 3.4.1 and the pip version is 1.5.6 (for 64-bit)
这些都没有奏效。有任何想法吗 ?我使用的是 Windows 10,我的 python 版本是 3.4.1,pip 版本是 1.5.6(对于 64 位)
回答by Uvar
Try python -m pip install --upgrade pip
followed by pip install pandas
, or python -m pip install pandas
.
尝试python -m pip install --upgrade pip
后跟pip install pandas
, 或python -m pip install pandas
。
回答by Deekshith Bucky
If you are on latest PyCharm 2018 then follow the below steps to install:
如果您使用的是最新的 PyCharm 2018,请按照以下步骤进行安装:
MAC:
苹果电脑:
Click on PyCharmshown on the Menubar -> Click Preferences-> Click Project Interpreterunder your Project -> Click '+' -> searchfor 'pandas'/'numpy' (you can specify specific version you want to install) and Click installunderneath. Now you're done.
单击菜单栏上显示的PyCharm-> 单击Preferences-> 单击项目下的Project Interpreter-> 单击 ' +' ->搜索'pandas'/'numpy'(您可以指定要安装的特定版本)并单击安装在下面。现在你完成了。
回答by Hamed Nikzad
Open terminal from View -> Tool Windows -> Terminal
type command:
pip install pandas
从视图 -> 工具窗口 -> 终端类型命令打开终端:
pip install pandas
Upon successful installation you should see output like so:
成功安装后,您应该会看到如下输出:
Successfully installed numpy-1.14.3 pandas-0.23.0 python-dateutil-2.7.3 pytz-2018.4 six-1.11.0
Successfully installed numpy-1.14.3 pandas-0.23.0 python-dateutil-2.7.3 pytz-2018.4 six-1.11.0
Then from File → Settings → Project: YourProjectName→ Project Interpreter check that under project interpreter pandas package installed.
然后从 File → Settings → Project: YourProjectName→ Project Interpreter 检查项目解释器下的 pandas 包是否安装。
回答by Shubham Shakya
Easiest way to do this is install anaconda on your machine. Then fire up your pycharm >> go to new project >> then you are given with 2 option - one is to select folder and the second one is to select interpreter .
最简单的方法是在你的机器上安装 anaconda。然后启动你的 pycharm >> 转到新项目 >> 然后你有两个选项 - 一个是选择文件夹,第二个是选择解释器。
Select interpreter as the directory where you have installed anaconda then go to settings, there you find something available packagesthen search for the package you wish you install and press install packageand you are good to go.
选择 interpreter 作为安装 anaconda 的目录,然后转到设置,在那里找到一些可用的软件包,然后搜索您希望安装的软件包,然后按install package就可以了。
This is the list you will get , just click on the one you want to install and hit install packageat the bottom of dialog box.
这是您将获得的列表,只需单击要安装的列表并点击 对话框底部的安装包。