Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BqMhb7/matplotlib/ #418

Closed
gith77 opened this issue Jan 17, 2018 · 158 comments

Comments

@gith77
Copy link

gith77 commented Jan 17, 2018

Hi
I try to install the package neuralpy in Python2.7 using this command in terminal

pip install neuralpy

And I got this error message

python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BqMhb7/matplotlib/

Help me pleeeeeeeeeeeeease 👍

@tomrisberil
Copy link

Hi, following link solved my problem

googleapis/google-cloud-python#3884

You should try pip install --upgrade setuptools.

@ghost
Copy link

ghost commented Jan 19, 2018

sudo apt-get install python3.6-dev libmysqlclient-dev

@sbhadr
Copy link

sbhadr commented Jan 19, 2018

This means that your setuptools are out of date.
You can fix this by doing: pip install --upgrade setuptools

@bletham
Copy link
Contributor

bletham commented Jan 23, 2018

I hope this was successful and thanks everyone for helping out, but I'm going to close this issue since it isn't related to this package.

@bletham bletham closed this as completed Jan 23, 2018
@gemini-15
Copy link

I had the same issue with django 2.0, so pip3 instead of pip, the problem may seem that using python 2.7 is impossible hence using python3 instead as typing pip3 install --upgrade setuptools then pip3 install neuralpy
hopefully this help

@slowDee
Copy link

slowDee commented Jan 27, 2018

I am having same issue but after running this command (pip3 install neuralpy) , i get the error message "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/y4/xznzf1fx6q53dqfh71_0lxfm0000gn/T/pip-build-2jgclo3u/neuralpy/"

@sbhadr
Copy link

sbhadr commented Jan 27, 2018

Did you try pip install —upgrade setuptools ?

@slowDee
Copy link

slowDee commented Jan 27, 2018

yes I did

@NICK-DUAN
Copy link

ImportError: No module named _winreg

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gGlnv2/pypiwin32/

i have this problem,is that because i use python2.7? i saw someone said the module '_wiinreg' named 'winreg' in python3.

@Mutegeki
Copy link

i failed work

@rpranshu
Copy link

For all those people who are facing issues:

write the following
pip install --upgrade setuptools --user python

Using the --user python flag will resolve the error in --upgrade flag and then you can resolve the main error too!

@elgoub
Copy link

elgoub commented Feb 18, 2018

i tink matplotlib is not suported by python3 so try
sudo pip2 install neuralpy

@asignor
Copy link

asignor commented Feb 22, 2018

I was having a similar problem in Windows, and it was a permissions issue. Since you cannot sudo, the way I found around it was to find my Python folder, right-click then manually edit the permissions in Properties, or open a cmd as an Administrator. (That is a right-click option.)

@lancekrogers
Copy link

I'm having the same problem with install pymongo on ubuntu

@brandonssmith
Copy link

Same problem while attempting to install mysqlclient in a digital ocean droplet.

@quelibrio
Copy link

pip install progressbar33 worked in my case

@ozkalt
Copy link

ozkalt commented Jun 9, 2018

For mac users, sudo pip install —upgrade setuptools is worked. Thank you @Sanjay-B

@ghost
Copy link

ghost commented Jun 12, 2018

I get this error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3_mzp9vn/mysqlclient/
when I:
pip3 install flask-mysqldb

pip install —upgrade setuptools did not work for me.

@ghost
Copy link

ghost commented Jun 13, 2018

i get this error:
`Collecting mysqlclient
Using cached https://files.pythonhosted.org/packages/6f/86/bad31f1c1bb0cc99e88ca2adb7cb5c71f7a6540c1bb001480513de76a931/mysqlclient-1.3.12.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-30vjp6u3/mysqlclient/setup.py", line 17, in
metadata, options = get_config()
File "/tmp/pip-build-30vjp6u3/mysqlclient/setup_posix.py", line 44, in get_config
libs = mysql_config("libs_r")
File "/tmp/pip-build-30vjp6u3/mysqlclient/setup_posix.py", line 26, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-30vjp6u3/mysqlclient/
`

@regularvm
Copy link

regularvm commented Jun 21, 2018

On debian these additional packages resolved same issue for me:
apt install libmysqlclient-dev python-mysqldb

seems almost same as @Khotso-t solution
I took it from here:
https://github.com/micheloosterhof/cowrie/blob/master/doc/sql/README.md

@fir0zsid
Copy link

Try this.It solved my problem
sudo apt-get install libpcap-dev libpq-dev

@aalzooke
Copy link

You should try the following commends
First do this

sudo pip3 uninstall numpy
sudo pip3 uninstall scipy

Then
sudo apt-get install python3.5-dev libmysqlclient-dev
sudo apt-get install python3-numpy
It should works

@FilipeNMarques
Copy link

Hello, pip install --upgrade setuptools works for me!

@miaoyaa
Copy link

miaoyaa commented Aug 7, 2018

good

@azharisan
Copy link

Exception:
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pip_internal\basecommand.py", line 141, in main
status = self.run(options, args)
File "c:\python27\lib\site-packages\pip_internal\commands\install.py", line 391, in run
wheel_cache.cleanup()
File "c:\python27\lib\site-packages\pip_internal\utils\temp_dir.py", line 58, in exit
self.cleanup()
File "c:\python27\lib\site-packages\pip_internal\utils\temp_dir.py", line 81, in cleanup
rmtree(self.path)
File "c:\python27\lib\site-packages\pip_vendor\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "c:\python27\lib\site-packages\pip_vendor\retrying.py", line 212, in call
raise attempt.get()
File "c:\python27\lib\site-packages\pip_vendor\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "c:\python27\lib\site-packages\pip_vendor\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "c:\python27\lib\site-packages\pip_internal\utils\misc.py", line 111, in rmtree
onerror=rmtree_errorhandler)
File "c:\python27\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "c:\python27\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "c:\python27\lib\shutil.py", line 266, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "c:\python27\lib\site-packages\pip_internal\utils\misc.py", line 119, in rmtree_errorhandler
if os.stat(path).st_mode & stat.S_IREAD:
WindowsError: [Error 5] Access is denied: 'c:\users\proadmin\appdata\local\temp\pip-install-94pot8
\setuptools\setuptools\cli-32.exe'

i get this error ???

@Frocolate
Copy link

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/08/n4ks_ytx2kggqpp88k9p23bw0000gn/T/pip-install-Ihs9Fg/aiohttp/
i've tried everything nothing is working for me im trying to do pip install discord.py nothing is working i'm quite desperate someone please help

@rpranshu
Copy link

rpranshu commented Sep 2, 2018

UPDATE

run the following commands to successfully install it!
pip install --no-cache-dir Package_Name

@victorzhang1
Copy link

used pip3 instead of pip problem solved somehow

@quynhho1601
Copy link

run
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade setuptools
is consolved with me

It helped in my case, thanks a lot man!

Worked for me too! I used Ubuntu 18.04

@TrivialPants
Copy link

TrivialPants commented Feb 17, 2021

I am still getting the same issue as the original post. I have tried some of these solutions to no avail. I am running python 3.6.9 (maybe that's the issue?). Just thought I would hop in the thread to see if anyone has a definitive answer.

EDIT: I think I got it fixed. https://pip.pypa.io/en/stable/installing/#upgrading-pip

I read back through the output & found this link to update pip. I had tried with different commands, but the above worked properly.

@naufdotal
Copy link

naufdotal commented Feb 23, 2021

default pip doesn't support Python 2 anymore, so don't upgrade it into the last version. -stackoverflow

So, if you are still using default pip (python 2.7) then upgrade your pip to pip==20.3.4, and upgrade your setuptools too

sudo easy_install pip==20.3.4
pip install --upgrade setuptools

its solve for me.

@zhazhalaila
Copy link

default pip doesn't support Python 2 anymore, so don't upgrade it into the last version. -stackoverflow

So, if you are still using default pip (python 2.7) then upgrade your pip to pip==20.3.4, and upgrade your setuptools too

sudo easy_install pip==20.3.4
pip install --upgrade setuptools

its solve for me.

Worked for me. Thanks.

@Musshca-Luclaure
Copy link

I have done everything here but nothing works. Is there other tips?

@Atomnp
Copy link

Atomnp commented Mar 25, 2021

sudo apt-get install python3.6-dev libmysqlclient-dev

what is this doing?

@anshikagoyal28
Copy link

anshikagoyal28 commented Mar 31, 2021

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f_0c8_4q/cryptography/

I am facing this error while installing apache-superset on Ubuntu-18. Please help.

@ghost
Copy link

ghost commented Jun 23, 2021

run
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade setuptools
is consolved with me

It helped in my case, thanks a lot man!

It working for me

@aruiplex
Copy link

aruiplex commented Jul 1, 2021

You may try use python3.8 -m pip install xxx to use specific python version to avoid different python pip version issues

@ghost
Copy link

ghost commented Aug 12, 2021

试试这两行代码或许会有用
sudo python3 -m pip install -U pip
sudo python3 -m pip install -U setuptools

@kingdavid72
Copy link

for my case, both of --upgrade pip with --upgrade setuptools worked for me ^^ thanks

@zhangyahuai
Copy link

pip3 install -upgrade pip
It works for me!

@safiullahkhan45
Copy link

Hi I try to install the package neuralpy in Python2.7 using this command in terminal

pip install neuralpy

And I got this error message

python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BqMhb7/matplotlib/

Help me pleeeeeeeeeeeeease +1

I had the same issue. and I was able to resolve it by running "pip3 install --upgrade pip" and it worked perfectly fine for me because I was running an older version of pip.

@ghaurii
Copy link

ghaurii commented Apr 20, 2022

Hi,
I tried to install pydispatch for powershell-empire but it gives me this error

Collecting pydispatch
Using cached pydispatch-1.1.0.tar.gz (8.0 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 14, in
File "/usr/local/lib/python3.7/site-packages/setuptools/init.py", line 12, in
from setuptools.extension import Extension
File "/usr/local/lib/python3.7/site-packages/setuptools/extension.py", line 7, in
from setuptools.dist import _get_unpatched
File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 16, in
import pkg_resources
File "/usr/local/lib/python3.7/site-packages/pkg_resources.py", line 1479, in
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@felipetssilva
Copy link

Hi I try to install the package neuralpy in Python2.7 using this command in terminal

pip install neuralpy

And I got this error message

python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BqMhb7/matplotlib/

Help me pleeeeeeeeeeeeease 👍

I just ditched pip and installed pip3, worked like magic

@eyuelbuzz
Copy link

eyuelbuzz commented Jun 20, 2022 via email

@ibtehajali67
Copy link

UPDATE

run the following commands to successfully install it! pip install --no-cache-dir Package_Name

Thanks it's work for me

@yassineasghar
Copy link

yassineasghar commented Jul 1, 2022

Guess what i'm having the same error while installing pandas . Yeah it's 2022 .
1 - Tried to update the setuptools with pip3 install --upgrade setuptools :: Probleme still persists.
2 - Tried with pip3 install --no-cache-dir pandas :: Probleme still persists.
3 - Removed python from the framework and all files related to python and pip installation ; Installed python again :: Probleme still persists.
4 - Tried with pip3 install --upgrade pip :: Probleme still persists.
5 - Tried with python3.10 -m pip install pandas :: Probleme still persists.
+ At the end i saw this on every Error : note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
Any suggestions here please .
Device :: Air M1 - macOs Montery v.12.4 .

@DaniloSVJ
Copy link

Olá, o link abaixo resolveu meu problema

googleapis/google-cloud-python#3884

Você deve tentar pip install --upgrade setuptools.
solved my problem

@supertborellix
Copy link

es ce que vous avez gerer le probleme d'espace sur le disque dur parfois c'est sa le probleme

@srsh-kh
Copy link

srsh-kh commented Jan 6, 2023

nothing worked... i had to use anaconda prompt

@Lucas-Jav
Copy link

o meu nao funcionou, atualizei, tentei dnv, mas aparece isso tambem: note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

@binhna
Copy link

binhna commented Sep 5, 2023

I am scrolling down to see if any comment have the highest like reaction and lowest dislike one and still can't find a solution 👯‍♂️

@jwee1369
Copy link

jwee1369 commented Oct 8, 2023

this helped me, my pip was not up to date

python -m pip install --upgrade pip

@Vahid1372H
Copy link

Hi, I don't install PiDictionary. Because, I have a one error.

ERROR: Could not find a version that satisfies the requirement PiDictionary (from versions: none)
ERROR: No matching distribution found for PiDictionary

Please help me for install it.

@hay0529
Copy link

hay0529 commented Apr 20, 2024

pip install --upgrade pip==20.2

use it!l succeed.

@flexyyyapk
Copy link

-m pip install

Это помогло!Я пытался качать pyrogram, но не выходило из-за payeas, но после вашего совета у меня получилось!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests