This question already has answers here:
How to setup pip to download from mirror repository by default?
(2 answers)
Closed 5 months ago.
I'm new to python and I need to install *.whl files locally from some folder (repository). I can install *whl like by using the command pip install path_to_file/*.whl, but this is not I want, what I do want is to write pip install some_whl_package and install the package specified from LOCAL directory. How can I do it? I use python 3.8.
Note that the dist folder must contain the whl file.you can also install .tar.gz packages like this
pip install --no-index -f ./dist my_package.whl
Related
This question already has answers here:
How to uninstall editable packages with pip (installed with -e)
(7 answers)
Closed 2 years ago.
While developing a package I installed it through pip install -e .
Now when I pip uninstall myPackage I get
Found existing installation: myPackage 0.1.2
Can't uninstall 'myPackage'. No files were found to uninstall.
with pip show myPackage I get:
Location: /mnt/home/aerijman/scripts/myPackage
I don't want to delete the path. How do I uninstall it?
Thank you
Assuming the project's name is MyProject, there should be a MyProject.egg-link file in the site-packages directory for this Python interpreter. Running the command /path/to/pythonX.Y -m site should help you figure out the possible location of this directory. Find the directory, find the MyProject.egg-link file, delete the file. Then you might also need to find a easy-install.pth in a similar site-packages directory (most likely the same), and in this file delete the line mentioning MyProject.
This question already has answers here:
How to install PyPi packages using anaconda conda command
(3 answers)
Closed 4 years ago.
I use Anaconda as the main source of python packages and also my main interpreter in PyCharm. If I want to install any package, I go to Anaconda Cloud and find it immediately something like this. Now, I want to install a package that only exists in Python Package Index here. I cannot find it in Anaconda Cloud so I don't know how to install it. Do I just need to include the package folder in the project directory in this case?
Thank you
You can install non-conda packages using pip:
pip install python-nonblock
This question already has answers here:
How to install Python packages from the tar.gz file without using pip install
(7 answers)
Closed 4 years ago.
When I download PyGUI-2.5.4.tar.gz from http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ and then run
pip install downloads/PyGUI-2.5.4.tar.gz
I get a long error, the root of which appears to be the following:
tarfile.ReadError: not a gzip file
Any ideas what I'm doing wrong?
The correct syntax for the installation is:
pip install --user ./Downloads/PyGUI-2.5.4.tar.gz
The --user is used to give the necessary permissions to install the package. Always check for the correct path and Upper and Lower case in your path(Your path was to 'downloads' with small 'd' ).
You can install tar.gz with pip Install a particular source archive file.
pip install ./Package-1.0.4.tar.gz
You can also install it with extracting tar.gz file. First you should extract it using using tar command.
tar -xzvf PyGUI-2.5.4.tar.gz
cd PyGUI-2.5.4.tar.gz
And then use the setup.py file to install the package .
python setup.py install
or
sudo python setup.py install
( use sudo only in linux )
Source: https://pip.readthedocs.io/en/stable/reference/pip_install/#git
This question already has answers here:
How to install python modules without root access?
(9 answers)
Closed 9 years ago.
I was wondering if there was a way to install and use BeautifulSoup (or any python module for that matter), which is not provided by my hosting service, without root privileges?
you can install package without root privilege.
use pip with '--user' option. Then pip install package in your '~/.local/' folder.
pip install --user some_package
if you use setup.py or easy_install, they also provide similar feature. (installation on user folder or changing installation root folder)
This question already has answers here:
Configuring so that pip install can work from github
(8 answers)
Closed 6 years ago.
I want to use a new feature of httpie. This feature is in the github repo https://github.com/jkbr/httpie but not in the release on the python package index https://pypi.python.org/pypi/httpie
How can I install the httpie package from the github repo? I tried
pip install https://github.com/jkbr/httpie
But I got an error 'could not unpack'
In Nodejs, I can install packages from github like this
npm install git+https://github.com/substack/node-optimist.git
You need to use the proper git URL:
pip install git+https://github.com/jkbr/httpie.git#egg=httpie
Also see the VCS Support section of the pip documentation.
Don’t forget to include the egg=<projectname> part to explicitly name the project; this way pip can track metadata for it without having to have run the setup.py script.
To install Python package from github, you need to clone that repository.
git clone https://github.com/jkbr/httpie.git
Then just run the setup.py file from that directory,
sudo python setup.py install