Says package "installed successfully", but doesn't actually install
Answered
I'm trying to get the LiveWires package to install in PyCharm setup, which appears to temporarily "install" but only if I add the parameter "–allow-external", however when I close the install dialog window, back to the Project Interpreter, it isn't there listed with the other packages I installed. There are other packages that are like that too. How do I get those to stick?
In the program when I try to import it ("from LiveWires import games, colors") I also get this error:
ImportError: No module named 'LiveWires'
Well, yeah ... it didn't appear to stick when I "installed it"so go figure. How do I use this package?
I'm using python3.4 and PyCharm4.0 Community.
Thanks in advance!
In the program when I try to import it ("from LiveWires import games, colors") I also get this error:
ImportError: No module named 'LiveWires'
Well, yeah ... it didn't appear to stick when I "installed it"so go figure. How do I use this package?
I'm using python3.4 and PyCharm4.0 Community.
Thanks in advance!
Please sign in to leave a comment.
Having the same problem with PyCharm 2018.1.1 and python 2.7 on Ubuntu 16.04. Any workaround for this one?
try changing that to
from livewires import games, colors
If that doesn't work, make sure that the in Preferences > Project Interpreter that the livewires module is installed in the python that your project is using (it is possible that you have more than one python installation, and each one has it's own sets of libraries).
What platform are you on? Windows/Mac/Linux?
Having this exact problem. PyCharm 2018.1.1, Python 3.6.
Project > Project Interpreter shows updates available. When clicking 'Update', it loads for a bit then shows the 'Package installed successfully' message, but the update is still available. Similarly, trying to install a new package will load and give the success message, but will never add the package to the library or the interpreter's package list.
The version never changes. I've tried running as a standard user and in administrator mode.
This solved my problem. My pycharm version is 2018.01.
https://stackoverflow.com/questions/49768770/not-able-to-install-python-packages-ssl-tlsv1-alert-protocol-version
Run virtual environment with shell. (replace "./venv/bin/activate" to your own path)
Run upgrade
Restart your pycharm, and check your python interpreter in Preference.
Hi everyone,
There are two different but intertwined problems described here.
The first one is that it's not possible to use and upgrade pip using the standard "pip install -U" from within PyCharm caused by the changes on PyPI. I'm afraid the only way to handle it at the moment is to update the tool manually using get-pip.py as mentioned above.
Another one is a recent regression introduced in 2018.1.1 causing PyCharm not to report any errors that happened during a package installation. It's already been fixed in 2018.1.2 RC. Please try upgrading the IDE and let us know if it helped.
It seems that PIL is one of those packages that while listed on PyPI doesn't keep any actual releases there and at least judging by PyPI stats it has been abandoned for quite a while. You won't be able to install in from Terminal either. Don't you need to install Pillow instead?
The problem with not reporting installation errors is already fixed in 2018.1.2. Updated version of pip for new virtual environments should be included in the next bugfix update. For existing ones you need to do it upgrade it manually at the moment, I'm afraid.
I also get an error for the installed package. Named allennlp.
If I try to install it gives massage package Requirement already satisfied: for all sub-packages.
but when in run the code, it gave ModuleNotFoundError: No module named 'allennlp.data'; 'allennlp' is not a package
can anyone please tell what was the problem is?
thank you.
You have a custom module named allennlp in your project which masks third party package and causes ModuleNotFoundError. Try to rename it.
it works for me.
thank you so much...
Update: reinstalled Python and PyCharm, still having issue.
Do you mean that you cannot update only pip and setuptool? If you do, it's a known problem that will be fixed in one of the upcoming PyCharm 2018.1.x updates (presumably 2018.1.2).
For the time being the workaround is to update them manually from Terminal.
Same problem here on 2018.1
Funny thing is that it worked ok with os and csv but panda and matplotlib causes this problem.
Another approach that worked for me (in an environment lacking 'curl', and without using a virtual environment) is to download this file manually:
https://bootstrap.pypa.io/get-pip.py
- and then save it in my project directory. Then I had to open Pycharm as administrator, then run that get-pip.py file with the project interpreter - this installed the latest version of pip, and after that I was able to re-open Pycharm as a normal user and install packages normally.First: I did what influenz suggested
Run virtual environment with shell. (replace "./venv/bin/activate" to your own path)
Run upgrade
Restart your pycharm, and check your python interpreter in Preference.
Result: pip was upgraded from 9.0.1 to 10.0.1
THEN
I did what Mikhail Golubev suggested and upgraded PyCharm...
Package appJar installed correctly but I cannot install other packages like PIL. IS that normal?
Tried PIL ... and got an error
Looking in indexes: https://pypi.org/simple/
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
Do u gonna update the IDE to solve this problem or i must do it manually ?
Many thanks Mikhail.
I have 2018.3 on OS X and I have the problem with no errors being reported.
Any package that I try to install simply is not installed and gives no error.
Yes. It’s my settings are correct. Here is the output:
It seems PyCharm uses wrong virtualenv for some reason. Can you please try **File > Invalidate caches / restart**, then create a new virtualenv interpreter for your project, and install try installing new packages there?
Hi Gary,
Did you launch PyCharm as superuser to silently install a package under /usr/local/lib/python2.7/site-packages/ directory?
Also, what happens if you try to install "jupyter" using "pip install" command directly for the same venv interpreter in terminal?
If it doesn't clarify anything, could you please create an issue in our tracker attaching idea.log (Help | Show Log in Files). There should be a record showing how exactly pip was launched and with which interpreter.
Hi Mikhail,
I have solved the issue (see below).
There was an invisible
file. That contained these lines:
Perhaps though PyCharm could catch something like this, and give a warning like suggesting to use
.should it not appear
So, basically, you suggesting that PyCharm should warn if the package is installed in a directory, that is not looked up by PyCharm's package manager (or rather by pip list)? I think that's a good suggestion.
Please feel free to submit a corresponding feature request to our issue tracker using the link https://youtrack.jetbrains.com/issues/PY and let us know if you need any help.