we are unable to install new python modules to my computer using pip
installation error on pycharm
Installation error on cmd
This is just a downloading problem. You should check your internet connection.
You should either try later or through a different network (in case the access to the website is blocked on your current network.) You might also try to use a VPN.
P.S.: I've just tried to install scrapy via pip, and I didn't encounter any problem.
Related
I read all the proposed related questions but didn't find an answer to my case.
As for the title, I need to run a Python script (e.i. not an executable created with pyInstall) on a Windows VM that is not connected to the Internet. I can only download packages via browser.
Install Python is not a problem, but pip doesn't work, so I have the libraries issue.
Do you have any suggestions?
If you go to PyPi, where pip searches for packages, and find a package you are interested in, you can click on "Download Files" on the left panel. Using numpy as an example: https://pypi.org/project/numpy/#files
You can manually download the files that you want for each package and install them directly with pip. Keep in mind that the first couple of rounds will likely involve error messages telling you that there are missing dependencies. You will have to go back to PyPi and get those dependencies as well, until everything installs correctly.
You may want to check the following question for information regarding manual dependency management: How to extract dependencies from a PyPi package.
So I have tried to install python when my terminal showed that I didn't have python, which was weird because I thought I did. When I tried to find it I couldn't find it, I used commands like:
which python
When I tried to remove python (I was trying random things):
sudo apt remove python
Then this error would show:
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
When I tried installing it with
apt install python
It would then throw the same Java error.
UPDATE: Apologies, I am on macOS Monterrey! 12.4
The python is by default install in linux you can check with which python3 or which python2.
Uninstalling python from your device is not a good idea, Your OS is depends on python, If you uninstall default python from your device then your system will be corrupted, Your terminal , Firefox and etc system software are using resources from default python.
If your JRE is not configure then you can configure with https://ubuntu.com/tutorials/install-jre#2-installing-openjdk-jre officials.
If you need to run multiple python versions on your device then must go with pyenv it's safe and easy.
https://github.com/pyenv/pyenv/wiki
https://github.com/pyenv/pyenv
I'm having a crazy problem installing a package I built and placed in a bitbucket repository to a local environment.
I built the package.
I was successfully able to connect to it from Pycharm locally by doing:
pip install -e path/to/repository
I then pushed the built package to bitbucket.
I then switched local environments and pip installed the package from bitbucket as follows:
pip install git+https://my_name#bitbucket.org/my_company/my_repo.git
The package successfully installed locally.
I see it in pycharm and pycharm sees it in the environment site-packages. It looks like this:
I can't tell if it is installed properly but I note there are no .py files.
The script in this environment doesn't see the package.
I get the following error:
Any guidance on what could be wrong? Again, everything works fine when I'm local and using pip install -e. The code works. Just can't get it to work from pushed distribution packages from a remote repository.
Thanks in advance.
I don't know if this counts as a true solve but got it working. And after about 10 hours of work on this I'm not exactly sure how. I believe the issue may boil down to a stray comma - yes a comma - in the setup file which was not enough to throw an error but somehow left the build without some necessary parameter which resulted in a bad build when trying to install from the repository.
This also raises questions for me as to how pip install e works. This because my local editable install worked fine.
Very troublesome that I can't definitively identify the cause of this issue though I've seemed to resolve it.
I am trying to install packages to use in a python program and am unable to install anything. Included below are screen shots showing the interpreter selected, the path of that interpreter, and the error message I receive. Please let me know what I am missing.
I've been looking around at other people's problems like this and nothing seems to fit my issue.
This kind of error seems like you do not have a stable connection to the pypi. The standard recommendation would be to "Make sure you are connected to the internet, Pycharm is allowed through the firewall and that your proxy (if you are behind one) allows access to this url address."
Now that is not very helpful so if this issue is happening over a single package, you can simply download the python wheel from the beautifulsoup's project page and install it manually by running pip install downloaded_whl_file.whl in the Pycharm's terminal (make sure that the environment is right!)
Lastly, you might be able to get around it by using a pip proxy through pip install beautifulsoup4 --proxy http://some-proxy.com
I hope that the above can help you get through your issue!
I'm working on a script that will plot data onto a map using the Basemap library. I'm trying to import Shapely as well for use in this same script. I'm working with Anaconda2 for Python2.7 in a Windows 7 environment. I used conda install to download the tar.bz2 file from the Conda Packages site (using Windows command line) and it looked like it all installed correctly.
When I open Pycharm and look at my accessible site-packages, I can see this package. However, when I try to use it within my script, I get an error saying that the package does not exist. I ran the script through the debugger to see if it would shed any more light, but I got the same error. Here's a screenshot of my available site packages when I go to Settings-->Project Interpreter from within Pycharm.
Screenshot of PyCharm site packages available
Is there something special I need to do in order to access this package from within a fresh Python file? I was trying to say "import shapely" or "import osx-64-shapely", but both give me the same "package does not exist" error message. I've been able to successfully use other third-party libraries within Python, so I'm not quite sure what the error is here....
I'm new to SO - if you need more details or there's some piece of info I didn't include, please let me know. Thank you for your help!
EDIT: I am NOT asking what the difference is between conda and pip, or how to use pip within PyCharm. I have used both successfully before to install third-party libraries. What I am asking is what might cause a third-party library that appears to have installed successfully from the command line become inaccessible from within PyCharm when I attempt to import it.
I'm not familiar with Shapely but I was astonished to see the name osx-64-shapely as a site-package for your python installation which is in windows 7. Are you sure you downloaded the right file? :)