This question already has an answer here:
Not able to install django-allauth in ubuntu 18.04.6 LTS
(1 answer)
Closed 8 months ago.
I'm trying to install paramiko using pip package on centos7 OS and getting issues like as below and installed python3 with below command
yum install -y python3
[root#test ~]# pip3 install paramiko
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting paramiko
Using cached https://files.pythonhosted.org/packages/04/e5/39ec73dd4a8769d6759b8d6c60a1b2c9337f585407c2ae8bfb8ccb734278/paramiko-2.11.0-py2.py3-none-any.whl
Collecting cryptography>=2.5 (from paramiko)
Using cached https://files.pythonhosted.org/packages/51/05/bb2b681f6a77276fc423d04187c39dafdb65b799c8d87b62ca82659f9ead/cryptography-37.0.2.tar.gz
Complete output from command python setup.py egg_info:
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ccbam6fs/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ccbam6fs/cryptography/
Just need to Upgrade pip package
pip3 install --upgrade pip
or
pip install --upgrade pip
Related
I am using python3 to install mysql-python package. So, when I run
pip install mysql-python,
it gives me error.
Tried using
pip install --upgrade setuptools
It shows
Collecting mysql-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-tu6ygqzj/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-tu6ygqzj/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
**ImportError: No module named 'ConfigParser'**
----------------------------------------
***Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tu6ygqzj/mysql-python/***
Successfully installed with all files in it.
I guess you need to install the following:
pip install mysqlclient
In Python 3, ConfigParser has been renamed to configparser for PEP 8 compliance.
mysqlclient is a fork of mysql-python, with Python 3 support.
Kindly make sure you have installed the following before installing mysqlclient:
sudo apt-get install python3-dev libmysqlclient-dev
For Lunix and Mac Machines, install the mysqlclient pre-requisites via:
Debian / Ubuntu - sudo apt-get install python-dev default-libmysqlclient-dev
Red Hat / CentOS - sudo yum install python-devel mysql-devel
macOS (Homebrew) - brew install mysql-client
I tried to do this before that so after this it command work:
apt-get install libmysqlclient-dev
I'm new to Python and have been trying to install some packages with pip.
I have gone through this sequence-------------
Download Python 2.7.15 from
https://www.python.org/downloads/
PATH = C:C:\Python27;C:\Python27\Scripts
(Is this we have to set in User Variable or System Variable?)
Then download wxPython from this link (Download this version wxPython2.8-win64-unicode-2.8.12.1-py27)
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
Then
Download setuptools (setuptools-39.2.0.zip) for Python from
https://pypi.org/project/setuptools/#files
Then
Download PIP files (pip-10.0.1.tar.gz) from
https://pypi.org/project/pip/#files
Now Extract the Setuptools
After extracting from the same folder TYPE "cmd" it will open then run this commend
"python setup.py install"
Now Extract the PIP files
After extracting from the same folder TYPE "cmd" it will open then run this commend
"pip install robotframework"
On the cmd run these commends one-by-one
pip install robotframework-ride
pip install robotframework-selenium2library
pip install selenium
pip install decorator
pip install docutils
pip install xlrd
pip install xlwt
pip install xlutils
pip install pigments
But pip install robotframework-ride unroll gives me
D:\Python\pip-10.0.1\pip-10.0.1>pip install robotframework-ride
Collecting robotframework-ride
Using cached https://files.pythonhosted.org/packages/3c/14/a5f97f5cf5e981f01e8
c0b4c405b0dfc9bc86500cabb044d2c462f73004a/robotframework-ride-1.5.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Deeksha\AppData\Local\Temp\pip-install-f5wsnk57\robotframew
ork-ride\setup.py", line 20, in <module>
execfile(join(ROOT_DIR, 'src', 'robotide', 'version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Deeksha\
AppData\Local\Temp\pip-install-f5wsnk57\robotframework-ride\
How can I solve this?
i want install 3rd library -> bson.
but error with next, who knows why?
# pip install bson
Collecting bson
Using cached bson-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-cP7YdW/bson/setup.py", line 8, in <module>
from pip import get_installed_distributions
ImportError: cannot import name get_installed_distributions
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-cP7YdW/bson/
system info:
# uname -a
Linux instance-says 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
python and pip version info:
# python -V
Python 2.7.13
# pip --version
pip 10.0.0 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
pip authors were warning for many years to not import pip. Finally at version 10 they restructured their code.
To continue using pip with packages that import pip you need pip version 9:
python -m pip install -U 'pip>=9,<10'
PS. There is already a bug report.
easy fix:
pip uninstall bson
pip uninstall pymongo
pip install pymongo
Try pip install --upgrade setuptools and run again.
I am using python 3.5 on windows 10. I am not able to install some libraries like scipy, mlxtend and math.
I have installed and upgraded setuptools and ez_setup following this answer
Python pip install gives "Command "python setup.py egg_info" failed with error code 1"
When I try to pip install scipy and mlxtend I get the following error:
NotFoundError: no lapack/blas resources found
And when I try to install math I get the following error:
Using cached Math-0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\setup.py", line 2, in <module>
raise RuntimeError("Package 'Math' must not be downloaded from pypi")
RuntimeError: Package 'Math' must not be downloaded from pypi
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\
On Windows, you'll want to locate the unofficial binaries here and download the appropriate .whl files for the packages you're wanting to install. Use pip to install and upgrade wheel and setuptools then do pip install the_name_of_the_file.whl
so altogether, assuming you want to install matplotlib and the .whl file is in your current directory...
pip install wheel
pip install --upgrade setuptools
pip install matplotlib‑1.5.3‑cp35‑cp35m‑win32.whl
I'm using a clean instance of Ubuntu server and would like to install some python packages in my virtualenv.
I receive the following output from the command 'pip install -r requirements.txt'
Downloading/unpacking pymongo==2.5.2 (from -r requirements.txt (line 7))
Downloading pymongo-2.5.2.tar.gz (303kB): 303kB downloaded
Running setup.py egg_info for package pymongo
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: No module named setuptools.command
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: No module named setuptools.command
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/redacted/env/build/pymongo
Storing complete log in /home/redacted/.pip/pip.log
Any Idea what's going on?
python version 2.7.3
pip version pip 1.4 from /home/redacted/env/lib/python2.7/site-packages (python 2.7)
Try installing:
sudo apt-get install python-setuptools
if this doesn't work try:
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
Edit: If you have several (possible conflicting) python installations or environments, the following commands can be useful to debug which executables are being used:
which python
which pip
which easy_install
They should "match". It can happen for example that you have pip installing packages for an EPD or global distribution while the current python that is being used corresponds to a local environment (or something different), in which case it might not be able to see the installed packages.
had the same problem, solved it with
pip install -U setuptools
Elaborating #elyase's Answer.
First check for which python version you want to install setuptools.
Normally both python versions comes default with debian or any linux distro.
So, as per your requirement install setup tools using apt package manager
For python 2.x
sudo apt-get install python-setuptools
For python 3.x
sudo apt-get install python3-setuptools
These instructions solved the problem for me:
first enter these commands
pip install --upgrade pip
pip install --upgrade wheel
pip install setuptools
and then try to install the package that requires setuptools.