简体   繁体   中英

Cannot install python libraries on Pycharm

在此处输入图片说明

I installed PyCharm and and Python 3 using the zip file. Now I want to install various libraries but it would not allow me to do so. How should I install the libraries on PyCharm?

sudo apt-get install python3-setuptools should get the work done.

Link : https://packaging.python.org/tutorials/installing-packages/

Since OP is using windows, python -m pip install -U pip setuptools should get the work done.

我认为您需要安装setuptools

sudo apt-get install python3-setuptools

Important Step:

Open Command Prompt in Windows And Type pip install python3-setuptools

If First Step is throwing some Error

To solve this,you need to let python know where the pip packages are to do this follow the instructions below

First Go to Settings and select Project interpreter, now Click on Add button and switch to manage repositories option and now again press add button and type https://pypi.python.org/pypi in the box and save.

Now Restart your pycharm and it will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM