0

Hi, I am not able to install packages (like PIL, scikits.learn etc ) in PyCharm!

I am using PyCharm Community Edition 2018.1x64. Operating system - windows whenever I install PIL /scikits.learn an error is prompted. ERROR- Non-zero exit code(1) Command output- Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command What I did? Considering above suggestion, I searched for cmd ran ''m pip install --upgrade pip" command. Outcome- 9.0.1 version of PIP was uninstalled and 10.0.1 was installed (figured this out from commands on cmd) But, even now am not able to install packages. Same error as mentioned above!) is being prompted. I again tried using command 'python -m pip install --upgrade pip'. But this time am getting notified as : Requirement already up-to-date:pip in c:\users\........\desktop\lib\site-packages(10.0.1) Please help. Thanks in advance :)

26th May 2018, 7:28 PM
Drishti Sharma
Drishti Sharma - avatar
11 Answers
+ 5
Everything might depend on: 1. Proper compiler/interpreter 2. Proper Py repository 3. Other dependencies upgrade/downgrade 1. Do you happen to have more than one Python installation? For example 32/64-bit or Anaconda? If so, make sure you are using the proper pip (or pip3) for Python 3 and also that in PyCharm you have indicated the proper interpreter in the settings. 2. Make sure you use the official repo and if it doesn't work, try the alternative: https://pypi.python.org/simple/ 3. That's the toughest, but PyCharm makes it at least a bit easier - go to the settings, where the interpreters and their respectivly installed modules are listed. Select all and click the small Update button on the right. Go get some coffee as it might take a while... ;) This way all modules and wheels will be up to date (make sure again about point 1., though).
26th May 2018, 8:21 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
Drishti Sharma Yes, Anaconda comes with its own Python package, so if you installed Python from its official site and then installed Anaconda, most likely you have two and pip works for the latest installation and on top of that, it might have mixed up the paths... :/ Make sure that in your PyCharm project you have the correct interpreter indicated, whether its the regular Python or Anaconda one. In the interpreter window, after you indicate the correct interpreter - you have a list of modules in that installation. You can add or update modules from there -- then you can be sure that this particular installation was updated.
27th May 2018, 7:44 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
You might want to give conda a try. conda update pil conda update scikit-learn Perhaps you are using the Anaconda installation by default, so this way you will have it updated.
27th May 2018, 4:01 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
pip installs almost everything. cant test but check pip version pil --version and check that you are using python3 pil. you might have to use pip3 command. also pil might be part of pillow package. you might also wanna run pip update if your version is outdated.
26th May 2018, 9:26 PM
Markus Kaleton
Markus Kaleton - avatar
+ 1
Thanks Kuba Siekierzynski ! Yes, I did pretty much like that . Actually I followed a tutorial. Everything was working perfectly smoothy until I had to install PIL /scikits.learn I am thinking of starting afresh with environment installation.
27th May 2018, 2:27 PM
Drishti Sharma
Drishti Sharma - avatar
0
I don't think PIL is available for Python 3...
26th May 2018, 7:34 PM
Amaras A
Amaras A - avatar
0
Hi, Thank you so much for responding Amaras. Just now I checked if scikits.learn is getting installed. But that too is not working.
26th May 2018, 7:39 PM
Drishti Sharma
Drishti Sharma - avatar
0
Hi Kuba, Thank you so much for taking out time to respond to my query. Thank you so much :) I have already tried the 3rd option a zillion times ! I mean whenever I tried updating PIP, the PIP gets updated to 10.0.1 but in the project interpretor (where all the installed packages are listed ) PIP version is shown as 9.0.1. Moreover, installation of PIL/scikits.learn fails every time ! To overcome this , I tried running the pip-update command on command prompt. PIP was successfully updated (according to cmd ). But still I am not able to install packages.
26th May 2018, 9:02 PM
Drishti Sharma
Drishti Sharma - avatar
0
And am sorry am not very good at all these stuffs as of now . As suggested by u, I have checked those three pointers - 1. I have only one version of python installation. (3.5.?) - But yes, Anaconda is also installed in my machine. (Is this causing problem !?) - I must also share this - if I don't have anything to do with PIL/scikits.learn then normal programs are working fine. (tkinter,datetime etc are working great) . So I think there's no problem with interpreter (please correct me if I am wrong!) I will try again solving PIP related problem after some time. Thank you so much for your time and help :)
26th May 2018, 9:14 PM
Drishti Sharma
Drishti Sharma - avatar
0
Thank you so much Markus Kaleton !
27th May 2018, 5:09 AM
Drishti Sharma
Drishti Sharma - avatar
0
I am getting an error in installing Neuralnets package in pycharm (Python 3.8) like "try installing d appropriate version of pip" but i hv the latest version of pip installed already. Please help me w this..
25th May 2020, 11:50 AM
S. Mousumi Mousumi
S. Mousumi Mousumi - avatar