Install utils package in python facing with error Package not found
Try run:conda install --channel bioconda/label/bioconda-utils-test package
orconda install -c conda-forge python-utils
pip cannot uninstall <package>: It is a distutils installed project
This error means that this package's metadata doesn't include a list of files that belong to it. Most probably, you have installed this package via your OS' package manager, so you need to use that rather than pip
to update or remove it, too.
See e.g. Upgrading to pip 10: It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. · Issue #5247 · pypa/pip for one such example where the package was installed with apt
.
Alternatively, depending on your needs, it may be more productive to not use your system Python and/or its global environment but create a private Python installation and/or environment. There are many options here including virtualenv
, venv
, pyenv
, pipenv
and installing Python from source into /usr/local
or $HOME
/$HOME/.local
(or /opt/<whatever>
).
Finally, I must comment on the often-suggested (e.g. at pip 10 and apt: how to avoid "Cannot uninstall X" errors for distutils packages) --ignore-installed
pip
switch.
It may work (potentially for a long enough time for your business needs), but may just as well break things on the system in unpredictable ways. One thing is sure: it makes the system's configuration unsupported and thus unmaintainable -- because you have essentially overwritten files from your distribution with some other arbitrary stuff. E.g.:
- If the new files are binary incompatible with the old ones, other software from the distribution built to link against the originals will segfault or otherwise malfunction.
- If the new version has a different set of files, you'll end up with a mix of old and new files which may break dependent software as well as the package itself.
- If you change the package with your OS' package manager later, it will overwrite
pip
-installed files, with similarly unpredictable results. - If there are things like configuration files, differences in them between the versions can also lead to all sorts of breakage.
Pip can't find module pip._internal.utils
Reinstalling didn't solve my problem. That is, not before I really made sure that nothing was left behind.
My Python install was in C:\Python38\
. After uninstalling python, this directory remained and contained some left over modules, like pip. I manually deleted the whole C:\Python38
folder.
Then, I checked my AppData
folder in my home dir. Everything in this folder and all subfolders that was related to Python or Python modules, I deleted as well. Keep in mind AppData
is a hidden folder, so it you might have to enable showing of hidden files and folders in the explorer first.
Finally, I removed all Python folders from my PATH environment variables (system as well as user).
After that, I did a new install of Python 3.8 and everything works as expected.
What I think the problem was? Some left overs from a previously (broken) installation messed with my environment, causing pip
not resolving required modules.
No matching distribution found for utilities
There is no module named utilities in Python,I believe you have encountered importing a file called utilities.py
by the line import utilities
. Showing the full source code might help. Additionally, check the gitgub repo of your source code for a file called utilities.py
and copy it to your execution folder. If you are talking about python-utils
, check this link.
Python Utilities contains many standard utility modules to solve common problems. They are :
File System -- os, os.path, shutil
Running External Processes -- commands
Exceptions
HTTP -- urllib and urlparse
Check This link
If this doesn't solve your issue, try installing the utilities-package using :
pip install utilities-package
PIP install error: package directory 'X' does not exist
py_modules
takes a list of module names, not files. Your call looks for RTBatch/py.py
and RTBatch_cli/py.py
.
Pip - Fatal error in launcher: Unable to create process using ' '
I fixed my issue by...
- downloading Python 3 at the official website and installing it via express installation
- Copy & Paste the standalone python into the ampps/python folder and overwriting the python version provided by AMPPS
- running
python -m pip install --upgrade pip
in cmd
Now pip and python 3 are installed in their latest version.
It seems that AMPPS doesnt't provide a full-fledged python build. So you need to update python yourself.
Thanks to y'all.
pip installed but throwing error while installing any package
The urllib
module used by pip
will automatically load proxy configuration from your OS.
In this case, this fails because you appear to have some malformed proxy configuration, in the proxy-bypass field. Verify that your proxy configuration is correct. On Mac, do so under System Preferences > Network.
Related Topics
How to Check Whether All Elements of Array Are in Between Two Values
Looping in Python: Modify One Column Based on Values in Other Columns
In Dictionary, Converting the Value from String to Integer
How to Find the Unit Digits of a Specific Number
Stripping Whitespaces from a List Inside the List of Tuples
Why Does It Say That Module Pygame Has No Init Member
How to Store Multiple Strings as One Variable
Subtracting Values Across Grouped Data Frames in Pandas
How to Find Factors of a Number Using the Simplest Python Method
Split a String At Uppercase Letters
How to Read Pdf Files One by One from a Folder in Python
Check If File Has a CSV Format With Python
Sqlalchemy: How to Filter Date Field
Create an Array With a Pre Determined Mean and Standard Deviation
Key Error: None of [Int64Index...] Dtype='Int64] Are in the Columns