Если вы видите, что команда python setup.py egg_info завершилась неудачно с кодом ошибки 1 при установке Python, возможно, инструмент установки на вашем компьютере не установлен или не обновлен. В этой статье мы исправим эту ошибку несколькими простыми решениями.
Это то, что вам нужно сделать, чтобы исправить «Ошибка команды« python setup.py egg_info »с кодом ошибки 1» при установке Python. Обязательно следуйте инструкциям в указанном порядке.
- Проверьте, установлены ли PIP и Setuptools.
- Обновите PIP и инструменты настройки
- Установить ez_Setup
Поговорим о них подробнее.
1]Проверьте, установлены ли PIP и Setuptools.
Первое, что вам нужно проверить, это установить ли PIP и Setuptools. Это простая задача, и вам просто нужно выполнить команду. Запустите командную строку от имени администратора из Стартовое меню и выполните следующую команду.
список пунктов
Таким образом вы сможете увидеть список установленных вами пакетов. Если вы видите «Инструменты настройки » там в вашей системе установлен Setuptools. Вы можете проверить версию и узнать, последняя ли она.
Если на вашем компьютере не установлены инструменты установки, установите его, выполнив следующую команду.
pip install setuptools
Это установит последнюю версию пакета.
2]Обновите PIP и инструменты настройки
Теперь вам нужно обновить как PIP, так и Setuptools и посмотреть, решит ли это проблему.
Запустите командную строку от имени администратора.
Чтобы обновить Setuptools, вам необходимо выполнить следующую команду.
pip install –upgrade setuptools
Чтобы обновить PIP, вам необходимо выполнить следующую команду.
python -m pip install -U pip
Сделав то же самое, вам нужно проверить, устранена ли проблема.
3]Установите ez_Setup
Если ez_Setup не установлен в вашей системе, вы можете столкнуться с этой проблемой. Для этого вы можете установить ez_Setup с помощью команды. Итак, запускаем Командная строка как администратор из Стартовое меню и выполните следующую команду.
pip install ez_setup
Теперь проверьте, сохраняется ли проблема.
Надеюсь, вы сможете исправить ошибку с помощью данных решений.
Как установить Python 3 в Windows 10?
Чтобы установить Python 3 в Windows 10, вы можете выполнить следующие действия.
- Загрузите последнюю версию Python из python.org.
- Запустите исполняемый файл.
- Теперь нажмите «Установить сейчас», обязательно включите PIP и IDLE и установите флажок «Добавить Python в PATH ».
- Вас спросят, хотите ли вы Отключить ограничение длины пути. Это позволит python обойти ограничение MAX_PATH в 260 символов.
- Это установит Python на ваш компьютер.
Если вы хотите узнать, установлен ли Python 3 на вашем компьютере, перейдите в следующее место.
C: Пользователи Имя пользователя AppData Local Programs Python Python37
И там вы можете увидеть Python.exe. Это означает, что на вашем компьютере установлен Python.
Читать далее: Как открывать и просматривать файлы Python PY на ПК с Windows.
.
Код ошибки 1 определяется как операция, запрещенная в стандартных системных символах errno Python. Эта проблема чаще всего возникает, когда ваши инструменты установки не установлены или не обновлены. В этой статье мы предоставили методы, которые решили проблему для большинства пользователей, связанную с этой конкретной ошибкой.
Код ошибки 1 в Python
Проверьте, правильно ли установлены ваш pip и setuptools.
Перед обновлением вы должны проверить, установлены ли в вашей системе pip и setuptools. Он также показывает номера версий для обоих. Вы можете узнать, устарела ли ваша версия программы или setuptools, из-за которой у вас возникла ошибка. Выполните следующие шаги, чтобы проверить установленные версии:
- Откройте командную строку, выполнив поиск с помощью функции поиска Windows.
- Введите следующую команду, чтобы получить список установленных пакетов. Pip list.Проверка установленных пакетов
- Если инструменты установки доступны в списке пакетов, это означает, что они уже установлены в вашей системе. Вы можете проверить версию и сравнить ее с последней версией.
Обновите инструменты настройки
Если инструменты установки уже установлены, попробуйте обновить их до последней версии. Вы можете попробовать следующие шаги, чтобы обновить свои инструменты настройки.
- Откройте командную строку, выполнив поиск с помощью функции поиска Windows.
- Теперь введите следующую команду, чтобы обновить инструменты установки: pip install –upgrade setuptools
Примечание. Если вы находитесь в Терминале, не забудьте добавить «sudo» перед командой.
Обновление инструментов настройки
- Это даст результат успешно установлен. Теперь вы можете попробовать использовать команду, которая изначально выдавала ошибку.
Обновление пункта
Иногда проблема кроется в самом пункте. Вы можете обновить pip, чтобы решить эту проблему. Вы можете выполнить следующие шаги, чтобы обновить pip:
- Нажмите клавишу Windows + S, чтобы открыть функцию поиска Windows. Теперь найдите командную строку и откройте ее.
- Чтобы обновить пип, попробуйте следующую команду: python -m pip install -U pipОбновление пункта
- Теперь вы можете попробовать установить свой пакет с помощью команды pip.
Попробуйте установить ez_setup
Некоторые пользователи исправили свои проблемы, установив модуль ez_setup. Иногда причиной проблемы может быть модуль, отсутствующий в вашей системе. Установка решила проблему для многих пользователей. Выполните следующие шаги:
- Удерживая клавишу Windows, нажмите R, чтобы открыть диалоговое окно «Выполнить». Теперь введите в нем CMD и нажмите клавишу Enter, чтобы открыть командную строку.
- Введите следующую команду, чтобы установить ez_setup: pip install ez_setupУстановка ez_setup
- Он вернет сообщение об успешной установке с названием версии. Теперь вы можете попробовать использовать команду установки пакета и посмотреть, работает ли она.
Have tries a couple of times now, but each time the result is the same:
pip install python-language-server
Collecting python-language-server
Downloading https://files.pythonhosted.org/packages/97/4c/b561716780888f8df9ed44b5e2b8b499258c31b7722d96da0002483fcdd2/python-language-server-0.19.0.tar.gz (55kB)
100% |████████████████████████████████| 61kB 150kB/s
Complete output from command python setup.py egg_info:
error in python-language-server setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in configparser; python_version<"3.0" at ; python_version<"3.0"
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-install-5Zy4C7/python-language-server/
Not sure if it is an XCode thing or perhaps the version of Python.
OS: macOS High Sierra v10.13.4
Python: 2.7.10
Please update setup tools pip install -U setuptools
arunimamookherjee, nickatomlin, farzadhallaji, Lizhangcheng, sinamoqadam, nalibjchn, maximeka, szrenyisu, glebmikulko, CooperPair, and 197 more reacted with thumbs down emoji
betseyliu, caionobrega, matheusabr, mitchl, kierun, raghuram-kukun, itsmyfirstname, Loongle, tonywang531, jiangzhiguo1992, and 9 more reacted with laugh emoji
tarekstronghol, betseyliu, insung3511, kierun, dev-isho, Loongle, tonywang531, timofeigladkikh, fitoprincipe, BioVinci, and 9 more reacted with hooray emoji
geekboy0801, Loongle, rbgt, baiyfbupt, sanpier, samirbraga, m0caa, nandes2062, mahmoudtokura, hilderjares, and 19 more reacted with confused emoji
betseyliu, nabidul, Bernal-R, shop350, italojs, bashirk, marsaka, kierun, fish98, matthiasjo, and 21 more reacted with heart emoji
AsmaKehila, JakeMalis, and Involution124 reacted with rocket emoji
Oh ow, that is causing an even bigger error :-/
pip install -U setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl (567kB)
100% |████████████████████████████████| 573kB 635kB/s
Installing collected packages: setuptools
Found existing installation: setuptools 18.5
Uninstalling setuptools-18.5:
Could not install packages due to an EnvironmentError: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', "[Errno 1] Operation not permitted: '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', "[Errno 1] Operation not permitted: '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', "[Errno 1] Operation not permitted: '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', "[Errno 1] Operation not permitted: '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', "[Errno 1] Operation not permitted: '/private/var/folders/l1/mjqxjq7j08jb6z6_f7j5wcgw0000gn/T/pip-uninstall-HGTmWv/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")]
Any suggestions? Thanks a lot
pulkitk1234 and harihandika reacted with hooray emoji
Hmmm, tried sudo
and sudo -H
but pretty much the same:
sudo -H pip install -U setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl (567kB)
100% |████████████████████████████████| 573kB 463kB/s
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: setuptools
Found existing installation: setuptools 18.5
Uninstalling setuptools-18.5:
Could not install packages due to an EnvironmentError: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")]
Can you try `brew install python` instead of use the Mac’s native one? There are some issues with it it would seem.
…
On 7 Jun 2018, at 17:52, Schalk Neethling ***@***.***> wrote:
Hmmm, tried sudo and sudo -H but pretty much the same:
sudo -H pip install -U setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl (567kB)
100% |████████████████████████████████| 573kB 463kB/s
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: setuptools
Found existing installation: setuptools 18.5
Uninstalling setuptools-18.5:
Could not install packages due to an EnvironmentError: [(‘/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc’, ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc’, «[Errno 1] Operation not permitted: ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'»), (‘/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py’, ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py’, «[Errno 1] Operation not permitted: ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.py'»), (‘/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py’, ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py’, «[Errno 1] Operation not permitted: ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'»), (‘/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc’, ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc’, «[Errno 1] Operation not permitted: ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/__init__.pyc'»), (‘/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib’, ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib’, «[Errno 1] Operation not permitted: ‘/private/tmp/pip-uninstall-3xJsCH/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'»)]
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
Zachary24, thomasbeznoskov7777, mirfan899, BitterSyrup, defragolo, davizucon, ldatta, yunusovbekir, leoleg, deki90to, and 7 more reacted with thumbs down emoji
LIANG-SN and brijesh-kalkani reacted with confused emoji
@gatesn Did this previously, so I did brew reinstall python
Here is the output of that:
==> Reinstalling python
==> Installing dependencies for python: sqlite
==> Installing python dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.24.0.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/a5/a51a1d0a22f6648b41980363dae433223785b55cf62bd9c67a78c15eadad7a99?__gda__=ex
######################################################################## 100.0%
==> Pouring sqlite-3.24.0.high_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
🍺 /usr/local/Cellar/sqlite/3.24.0: 11 files, 3.5MB
==> Installing python
==> Downloading https://homebrew.bintray.com/bottles/python-3.6.5.high_sierra.bottle.1.tar.gz
Already downloaded: /Users/schalkneethling/Library/Caches/Homebrew/python-3.6.5.high_sierra.bottle.1.tar.gz
==> Pouring python-3.6.5.high_sierra.bottle.1.tar.gz
==> /usr/local/Cellar/python/3.6.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/loca
==> /usr/local/Cellar/python/3.6.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/loca
==> /usr/local/Cellar/python/3.6.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/loca
==> Caveats
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
If you need Homebrew's Python 2.7 run
brew install python@2
Pip, setuptools, and wheel have been installed. To update them run
pip3 install --upgrade pip setuptools wheel
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.6/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
The did echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc
Then did: pip3 install --upgrade pip setuptools wheel
and got
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (10.0.1)
Cache entry deserialization failed, entry ignored
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/7f/e1/820d941153923aac1d49d7fc37e17b6e73bfbd2904959fffbad77900cf92/setuptools-39.2.0-py2.py3-none-any.whl
Cache entry deserialization failed, entry ignored
Collecting wheel
Using cached https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl
Installing collected packages: setuptools, wheel
Found existing installation: setuptools 39.0.1
Uninstalling setuptools-39.0.1:
Successfully uninstalled setuptools-39.0.1
Found existing installation: wheel 0.31.0
Uninstalling wheel-0.31.0:
Successfully uninstalled wheel-0.31.0
Rolling back uninstall of wheel
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/bin/wheel'
Consider using the `--user` option or check the permissions.
So I did: sudo pip3 install --upgrade pip setuptools wheel
and got
The directory ‘/Users/schalkneethling/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/schalkneethling/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (10.0.1)
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages (39.2.0)
Requirement already up-to-date: wheel in /usr/local/lib/python3.6/site-packages (0.31.1)
Then did sudo pip3 install python-language-server
And it seems to have worked:
The directory '/Users/schalkneethling/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/schalkneethling/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting python-language-server
Downloading https://files.pythonhosted.org/packages/97/4c/b561716780888f8df9ed44b5e2b8b499258c31b7722d96da0002483fcdd2/python-language-server-0.19.0.tar.gz (55kB)
100% |████████████████████████████████| 61kB 1.1MB/s
Collecting future>=0.14.0 (from python-language-server)
Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 3.3MB/s
Collecting jedi>=0.12 (from python-language-server)
Downloading https://files.pythonhosted.org/packages/e7/42/074192a165622e645ed4aeade63e76e56b3496a044569b3c6cae3a918352/jedi-0.12.0-py2.py3-none-any.whl (172kB)
100% |████████████████████████████████| 174kB 3.9MB/s
Collecting pluggy (from python-language-server)
Downloading https://files.pythonhosted.org/packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whl
Collecting parso>=0.2.0 (from jedi>=0.12->python-language-server)
Downloading https://files.pythonhosted.org/packages/cd/3e/5908f9577dbd1e5df53e64349bfd11e46b726c1e4d8cd676bbe8aa4de316/parso-0.2.1-py2.py3-none-any.whl (91kB)
100% |████████████████████████████████| 92kB 2.4MB/s
Installing collected packages: future, parso, jedi, pluggy, python-language-server
Running setup.py install for future ... done
Running setup.py install for python-language-server ... done
Successfully installed future-0.16.0 jedi-0.12.0 parso-0.2.1 pluggy-0.6.0 python-language-server-0.19.0
Palak-B, Flora883, shivamgarg17, SizheWei, mirfan899, and brijesh-kalkani reacted with thumbs down emoji
hastimal reacted with heart emoji
hastimal reacted with rocket emoji
Great…. I faced a similar issue while installing mysqlclient for python
sudo pip3 install MySQL client
Issue Resolved
Zachary24, ZQbd, powderblock, Rexfarell, marwanse, mdhussain7, henrique945, MehranJanfeshan, and brijesh-kalkani reacted with thumbs down emoji
edwardz8 and expmud reacted with laugh emoji
edwardz8 reacted with hooray emoji
LIANG-SN reacted with confused emoji
edwardz8, richardmk, and wxiaogui reacted with heart emoji
In order to connect to mysql from python (mine 3.7) (import mysql.connector), I used ‘pip install mysql-connector-python’. Worked for me
Thanks @shreyashk09 for me also ‘pip install mysql-connector-python’ worked
I had this problem when I tried to install xgboost-lib in virtual environment on mac. I was able to install it in first time but then second time I had this problem. I did the same as schalkneethling commented on 9 Jun but it didn’t work. Then I renamed /Library/Developer/CommandLineTools folder and installed xcode command line tools again.
xcode-select —install
This worked for me. I don’t know if it was only the reinstalling command line tools or was it because of both.
I have a seem question when i install minepy ,and then i try they way you did ,finally success,thank u
here is my code
sudo pip3 install --upgrade pip setuptools wheel
sudo pip3 install minepy
Zachary24, PyGera, CobaiN-why, yunusovbekir, PoSsIBiLiTy357, and sametuzun781 reacted with thumbs down emoji
IslamAlam reacted with hooray emoji
untitled1024 and SuguKumar91 reacted with heart emoji
IslamAlam, sonnellove, and betozanette reacted with rocket emoji
Using conda, mine was fixed by executing:
conda install shapely
If you are using pip try:
pip install shapely
kierenduffy, smounitz, and xerxes01 reacted with heart emoji
jaeho3690, jjderooy, MyatMinHan, and xerxes01 reacted with rocket emoji
I had the same issue with pip. Executing: sudo python -m pip install scipy
worked for me
xcode-select —install
worked for me
una imagen de docker es la solución, con eso te ahorras errores internos que tiene mac con las actualizaciones de herramientas de python
with conda you can do this:
conda install py-xgboost
I am trying to install pyradar in ubuntu 18.04 with python 3.6 using pip
Command «python setup.py egg_info» failed with error code 1 in /tmp/pip-install-itd9hctk/pyradar/ is the error I am getting.
I have updated setuptools and development packages too. Please help
Hello can someone please help me with this. I have tried everything mentioned above but the error doesn’t go away.
Command «python setup.py egg_info» failed with error code 1 in /private/var/folders/8z/gpqdyh8x14ddw7p75n63wzkh0000gn/T/pip-install-45NKk3/psycopg2/
Command «python setup.py egg_info» failed with error code 1 in /private/tmp/pip-install-44321s9y/distribute/
when i do thid command:
pip2 install -U scikit-image
the problem is 👍
Command «python setup.py egg_info» failed with error code 1 in /tmp/pip-install-wt8Rvr/matplotlib/
i don’t konw why?
when i do thid command:
pip2 install -U scikit-image
the problem is
Command «python setup.py egg_info» failed with error code 1 in /tmp/pip-install-wt8Rvr/matplotlib/
i don’t konw why?
i am also this question
I used pip install psycopg2-binary
and it worked for me. thanks for the help guys.
For me the problem was while installing psycopg2
Sollution:
For python 2:
sudo apt-get install libpq-dev python-dev
For python 3
sudo apt-get install libpq-dev python3-dev
Please try «xcode-select —install» as mentioned by @bjxgcl
It also works for me.
Help please I am a new user of python, and I try to install «scikit-spectra» with this; «sudo python3 -m pip install scikit-spectra» I got the error as » ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File «», line 1, in
File «/tmp/pip-install-cv_doa98/scikit-spectra/setup.py», line 16, in
with open(‘requirements.txt’, ‘r’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘requirements.txt’
—————————————-
ERROR: Command «python setup.py egg_info» failed with error code 1 in /tmp/pip-install-cv_doa98/scikit-spectra/»
Any suggestions? Thanks…
Help i was trying to clone pip install git+https://github.com/zhangchiyu10/pyC45.git , and ERROR: Command «python setup.py egg_info» failed with error code 1 in C:UsersYULIAN~1AppDataLocalTemppip-req-build-_iw_ga7h
i have updated my setup to the latest, and nothing changes. help what should i do
I have a seem question when i install minepy ,and then i try they way you did ,finally success,thank u
here is my code
sudo pip3 install --upgrade pip setuptools wheel
sudo pip3 install minepy
This did it for me.
I have a seem question when i install minepy ,and then i try they way you did ,finally success,thank u
here is my code
sudo pip3 install --upgrade pip setuptools wheel
sudo pip3 install minepy
Tried so many things and this finally worked. thank you!!
sudo pip3 install mysql-connector-python
This command worked for me.
pip3 install python-openstackclient
Please update setup tools
pip install -U setuptools
I tried that and many other so many times. Won’t work.
pip install —upgrade pip setuptools wheel
worked for my case
on Fedora:
dnf install python3-devel
sudo dnf -y groupinstall «Development Tools»
// and maybe these optional packages:
pip3 install —upgrade pip setuptools wheel
pip3 install pipenv
If this error still pops up just try to re-install pip from this file https://bootstrap.pypa.io/get-pip.py.
python3 get-pip.py
Then ensure pip, setups-tools and wheel are up to date:
python3 -m pip install --upgrade pip setuptools wheel
Hope this helps !
For me the problem was while installing psycopg2
Sollution:
For python 2:
sudo apt-get install libpq-dev python-dev
For python 3
sudo apt-get install libpq-dev python3-dev
hey thanks it helped
python -m pip install --upgrade pip setuptools wheel
Requirement already up-to-date: pip in c:usersuserappdatalocalprogramspythonpython38-32libsite-packages (20.0.1)
Requirement already up-to-date: setuptools in c:usersuserappdatalocalprogramspythonpython38-32libsite-packages (45.1.0)
Requirement already up-to-date: wheel in c:usersuserappdatalocalprogramspythonpython38-32libsite-packages (0.33.6)
pip, setuptools and wheel all are updated but I am still facing issue for Scripy Installation.
ERROR: Command errored out with exit status 1:
command: ‘c:usersuserappdatalocalprogramspythonpython38-32python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersUserAppDataLocalTemppip-install-r_fcatzhScripysetup.py'»‘»‘; file='»‘»‘C:UsersUserAppDataLocalTemppip-install-r_fcatzhScripysetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ egg_info —egg-base ‘C:UsersUserAppDataLocalTemppip-install-r_fcatzhScripypip-egg-info’
cwd: C:UsersUserAppDataLocalTemppip-install-r_fcatzhScripy
Complete output (7 lines):
Traceback (most recent call last):
File «», line 1, in
File «C:UsersUserAppDataLocalTemppip-install-r_fcatzhScripysetup.py», line 96, in
description=get_description(packages[0], PACKAGE_DIR),
File «C:UsersUserAppDataLocalTemppip-install-r_fcatzhScripysetup.py», line 47, in get_description
pkg = import(package, level=1)
KeyError: «‘name‘ not in globals»
—————————————-
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
hello you should just install it other way using cmd terminal it works without error, then go find your lib
in C:Users………AppDataLocalProgramsPythonPython38-32Libsite-packages
there you will find items you downloaded …… then copy it to your project libarary
C:Users……..PycharmProjectsprojectnamevenvLibsite-packages
you may use liclipse instead pycharm community version it works without problem
welcome everybody
Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
For me fixes after: sudo apt-get install libpq-dev
original
I used pip3 instead of pip and it worked for me!
I was attempting to install Sphinx:
File "<string>", line 17, in <module>
File "/private/var/folders/l0/1n78l_551rv_f1g_klmmj7jh0000gn/T/pip_build_macbookpro/sphinx/setup.py", line 8, in <module>
import sphinx
File "sphinx/__init__.py", line 20, in <module>
from .deprecation import RemovedInNextVersionWarning
File "sphinx/deprecation.py", line 29
def deprecated_alias(modname: str, objects: Dict, warning: Type[Warning]) -> None:
^
SyntaxError: invalid syntax
I have a seem question when i install minepy ,and then i try they way you did ,finally success,thank u
here is my code
sudo pip3 install --upgrade pip setuptools wheel
sudo pip3 install minepy
thank you so much! i have solved my question by sudo pip
i am new to programming language of python i am using visual studio code as mentioned in the title and my os is windows 8.1 pro and my python version is 3.7.2
the following is the error:
C:UsersSURAJ MAHENDRADesktop>pip install pyttsx3
Collecting pyttsx3
Using cached pyttsx3-2.84-py3-none-any.whl (39 kB)
Collecting pyobjc>=2.4
Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB)
Collecting comtypes; «win32» in sys_platform
Using cached comtypes-1.1.7.zip (180 kB)
Collecting pyobjc-framework-SecurityInterface==6.1
Downloading pyobjc-framework-SecurityInterface-6.1.tar.gz (23 kB)
ERROR: Command errored out with exit status 1:
command: ‘e:pythonpython.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersSURAJM1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterfacesetup.py'»‘»‘; file='»‘»‘C:UsersSURAJM1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterfacesetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ egg_info —egg-base ‘C:UsersSURAJM1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterfacepip-egg-info’
cwd: C:UsersSURAJM1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterface
Complete output (15 lines):
Traceback (most recent call last):
File «», line 1, in
File «C:UsersSURAJM1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterfacesetup.py», line
23, in
extra_link_args=[«-framework», «SecurityInterface»],
File «C:UsersSURAJM1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterfacepyobjc_setup.py», line 408, in Extension
os_level = get_os_level()
File «C:UsersSURAJM~1AppDataLocalTemppip-install-i2qlzoqppyobjc-framework-SecurityInterfacepyobjc_setup.py», line 218, in get_os_level
pl = plistlib.readPlist(«/System/Library/CoreServices/SystemVersion.plist»)
File «e:pythonlibplistlib.py», line 99, in readPlist
with _maybe_open(pathOrFile, ‘rb’) as fp:
File «e:pythonlibcontextlib.py», line 112, in enter
return next(self.gen)
File «e:pythonlibplistlib.py», line 82, in _maybe_open
with open(pathOrFile, mode) as fp:
FileNotFoundError: [Errno 2] No such file or directory: ‘/System/Library/CoreServices/SystemVersion.plist’
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
i have tried many times by changing the directory and even turned to pycharm but to no avail.
i just cant understand whats the problem. can anyone help me and please explain me layman’s language as i am new.
thanking you sir/madam.
I have the same problem and i have been try many times by change directory but it’s not work for my case. Anyone can help me?
C:UsersHpDocumentsGitHubtwint>pip3 install twint
Collecting twint
Using cached twint-2.1.16.tar.gz (30 kB)
ERROR: Command errored out with exit status 1:
command: ‘c:usershpappdatalocalprogramspythonpython36python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersHpAppDataLocalTemppip-install-c8lvadyltwintsetup.py'»‘»‘; file='»‘»‘C:UsersHpAppDataLocalTemppip-install-c8lvadyltwintsetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ egg_info —egg-base ‘C:UsersHpAppDataLocalTemppip-install-c8lvadyltwintpip-egg-info’
cwd: C:UsersHpAppDataLocalTemppip-install-c8lvadyltwint
Complete output (26 lines):
Traceback (most recent call last):
File «c:usershpappdatalocalprogramspythonpython36libsite-packagespkg_resources_init_.py», line 2864, in get_entry_map
ep_map = self.ep_map
File «c:usershpappdatalocalprogramspythonpython36libsite-packagespkg_resources_init.py», line 2822, in getattr
raise AttributeError(attr)
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersHpAppDataLocalTemppip-install-c8lvadyltwintsetup.py", line 64, in <module>
'Programming Language :: Python :: Implementation :: CPython',
File "c:usershpappdatalocalprogramspythonpython36libsite-packagessetuptools__init__.py", line 143, in setup
_install_setup_requires(attrs)
File "c:usershpappdatalocalprogramspythonpython36libsite-packagessetuptools__init__.py", line 132, in _install_setup_requires
(k, v) for k, v in attrs.items()
File "c:usershpappdatalocalprogramspythonpython36libsite-packagessetuptoolsdist.py", line 423, in __init__
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
File "c:usershpappdatalocalprogramspythonpython36libsite-packagespkg_resources__init__.py", line 657, in <genexpr>
for entry in dist.get_entry_map(group).values()
File "c:usershpappdatalocalprogramspythonpython36libsite-packagespkg_resources__init__.py", line 2867, in get_entry_map
self._get_metadata('entry_points.txt'), self
File "c:usershpappdatalocalprogramspythonpython36libsite-packagespkg_resources__init__.py", line 2538, in parse_map
raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
To all people that are directed here by a google search or something: unless you’re running pip3 install python-language-server
, your problem has nothing to do with this package.
Therefore, please don’t report it here. Thanks!
palantir
locked as too heated and limited conversation to collaborators
Mar 25, 2020
Workable Solutions | Step-by-step Troubleshooting |
---|---|
Fix «Python Setup.py egg_info» | Method 1. Check if Pip and Setuptools Are…Full steps Method 2. Upgrade Pip…Full steps Method 3. Upgrade Setuptools…Full steps Method 4. Try to Install the ez_setup…Full steps |
Restore Data After Fixing the Error | Step 1. Run EaseUS Data Recovery Wizard. Choose the drive where you lost files and start scanning…Full steps |
«Python Setup.py egg_info» Failed with Error Code 1
As a python programmer, you have to use and integrate various other programming packages in your code. By packages, it simply means adding different codes written by others to add functionality to your program.
While integrating others’ code might sound hectic and challenging, it becomes easier with python package managers. But python programmers face «python setup.py egg_info» failed with error code 1 while installing packages.
Before you see how to fix «python setup.py egg_info» failed with error code 1, let’s see why common reasons why this error occurs in the first place.
- The issue with python package managers. The good news is that you do not have to manually add other programmers’ code (packages) into your code. You can do this job using python package managers such as PIP and SetupTools. However, if they are not installed correctly, you can face a «python setup.py egg_info» failure with error code 1.
- Using the old version of PIP. As you know, your package manager plays an important role when working with any programming language. Such is the case with python. If your python package manager PIP is outdated, you must update it. Otherwise, it will throw «python setup.py egg_info» failed with error code 1 while installing new packages.
- Setuptools version issue. With the PIP Python package manager, it is crucial to install Setuptools’ latest version. If you run an old version of Setuptools, it will also throw the «python setup.py egg_info» failed with error code 1.
- Missing ez_setup. ez_setup is another essential module required for python programming. Your system must have it installed; otherwise, you can get «python setup.py egg_info» failed with error code 1.
Those mentioned above are some of the common causes of «python setup.py egg_info» failing with error code 1. Now you know the reasons, let’s see how you can fix it.
4 Ways to «Python Setup.py egg_info» Failed with Error Code 1
The good news is that the workaround to fix the command «python setup.py egg_info» failed with error code 1 is simple. Our article introduces four easy methods to help you fix the error by yourself. Let’s see each method below with a step-by-step guide. Make sure to follow the tutorials thoroughly and not miss any steps.
Method 1. Check if Pip and Setuptools Are Installed Correctly
PIP and Setuptools are python package managers. They help you add external libraries, packages, and already written code in your python program. If missing or installed incorrectly, these tools can cause the command «python setup.py egg_info» to fail with error code 1.
Therefore, you need to check if both PIP and Setuptools are installed correctly in your system. Follow the below steps to check if PIP and Setuptools are installed correctly on your computer.
Step 1. Open Command Line Interface (CMD) on your computer.
You can do that by pressing Windows + R key, which will open the Run window. In the Run window, type CMD and press the Enter key.
Step 2. In CMD, enter the command pip list.
Running pip list will enlist if you have pip and setuptools installed and their version numbers.
Once you see both pip and setuptools installed from the pip list command, you must compare the version numbers. Make sure that both have their latest version installed on your computer. If the version is old, follow the upcoming methods to upgrade both pip and setuptools.
Method 2. Upgrade Pip to Fix «Python Setup.py egg_info»
The previous method showed you how to check if PIP is installed on your computer. Furthermore, if you have PIP installed but with an older version, then there is a high chance that you are facing the command «python setup.py egg_info» failing with error code 1.
Therefore, you need to upgrade the PIP on your computer. You can easily upgrade PIP on your computer and fix the command «python setup.py egg_info,» which failed with error code 1, by following the below steps.
Step 1. Open Command Line Interface (CMD) on your computer.
You can do that by pressing Windows + R key, which will open the Run window. In the Run window, type CMD and press the Enter key.
Step 2. In CMD, type python -m pip install -U pip.
Running the command will upgrade the PIP package installed on your computer. After PIP is upgraded, you can go ahead and install python packages without facing the command «python setup.py egg_info» failed with error code 1 issue.
Method 3. Upgrade Setuptools to Fix «Python Setup.py egg_info»
Setuptools package manager needs similar care as the pip python package manager. If you found from method 1 in this article that you are running an old version of Setuptools, you need to update it to get rid of the command «python setup.py egg_info,» which failed with error code 1.
Follow the below steps to upgrade Setuptools on your computer.
Step 1. Open Command Line Interface (CMD) on your computer.
You can do that by pressing Windows + R key, which will open the Run window. In the Run window, type CMD and press the Enter key.
Step 2. In CMD, type pip install -upgrade setuptools.
After running the above command, your system will upgrade the Setuptools package. You can now install other packages without facing the command «python setup.py egg_info,» which failed with the error code 1 issue.
Method 4. Try to Install the ez_setup
One major cause of the command «python setup.py egg_info» failing with error code 1 is due to the missing ez_setup module in your computer. Using pip package manager, you can easily install the ez_setup.
Follow the below steps to install the ez_setup on your computer using the pip package manager of python.
Step 1. Open Command Line Interface (CMD) on your computer.
You can do that by pressing Windows + R key, which will open the Run window. Then, in the Run window, type CMD and press the Enter key.
Step 2. In CMD, type the command pip install ez_setup
After that, the ez_setup module will work on your computer. Next, try to install new python packages, and hopefully, you won’t face the command «python setup.py egg_info» failing with the error code 1 issue.
How to Restore Data After Fixing Python Error Code 1
The users of the python community have reported that the command «python setup.py egg_info» failed with error code 1 and has caused data loss on their computers. So, if python deletes files while fixing this error, don’t worry, as you can restore it. EaseUS free data recovery software is a highly recommended tool for recovering any file in Windows 11/10/8/7 caused by the command «python setup.py egg_info» failed with error code 1 issue.
The key features provided by EaseUS Data Recovery Wizard make it a highly recommendable tool. Let’s see a few of its key features below.
- EaseUS Data Recovery Wizard helps you recover any accidentally deleted data from your computer.
- Data you lose during a Windows upgrade can be recovered with three steps.
- Data from network-attached storage can be recovered (NAS).
- Any external storage device, such as an external hard drive, can be used to retrieve data.
Step 1. Run EaseUS Data Recovery Wizard. Choose the drive where you lost files and start scanning. This software allows you to recover lost data from all devices, including HDD, SSD, USB drive, SD card, pen drive, camera, etc.
Step 2. Browse the full scan results. You can choose the file type you need by clicking on the file type filter. EaseUS data recovery software supports 1000+ file types like photos, videos, documents, emails, audio files, and many more.
Step 3. Select the files you want to preview. Click «Recover» and set a storage location to save the recovered data.
Conclusion
While installing new packages, Python programmers face the command «python setup.py egg_info» failed with error code 1 issue. But, the good news is that you can fix this issue by following four easy methods. Whenever you face the command «python setup.py egg_info» failing with error code 1, check that pip and setup tools are installed on your computer and their latest version.
You must upgrade the pip and setup tools if you don’t have the latest version. Also, ez_setup is another essential module present on your computer. You don’t have to face the command «python setup.py egg_info» failed with error code 1 issue.
One more important thing is that you can restore lost data. For example, the command «python setup.py egg_info» failed with an error code 1 issue using EaseUS Data Recovery Wizard. It is highly recommended and can recover your data from any scenario.
The error code 1 is defined as Operation not permitted in python standard errno system symbols. This issue is mostly caused when your setuptools do not appear to be installed or updated. In this article, we have provided the methods that solved the issue for most users regarding this particular error.
Check if your pip and setuptools are Installed Correctly
Before updating you should check if the pip and setuptools are installed on your system. It also shows the version numbers for both. You can find out if your pip or setuptools version is out of date due to which you are having the error issue. Follow the below steps to check the installed versions:
- Open the Command Prompt by searching it through the Windows search feature.
- Type the following command to get the list of installed packages.
pip list
Checking installed packages - If the setuptools is available in the packages list, it means it is already installed on your system. You can check the version and compare it with the latest version.
Upgrade setuptools
If the setuptools is already installed, then try updating it to the newest version. You can try the following steps to update your setuptools.
- Open the Command Prompt by searching it through the Windows search feature.
- Now type the following command to update the setuptools:
pip install –upgrade setuptools
Note: If you are on Terminal, make sure to add the “sudo” before the command.
- It will give an output of successfully installed. Now you can try using the command that gave the error in the first place.
Upgrade pip
Sometimes the issue resides in the pip itself. You can upgrade pip to fix the issue. You can follow the below steps to upgrade pip:
- Press the Windows + S key to open the Windows search feature. Now search for the Command Prompt and open it.
- To update the pip, try the following command:
python -m pip install -U pip
Upgrading pip - Now you can try installing your package with the pip command.
Try to Install the ez_setup
Some users got their issues fixed by installing the ez_setup module. Sometimes the module missing from your system can cause the issue. Installing it resolved the issue for many users. Follow the below steps:
- Hold the Windows key and press R to open the Run dialog box. Now type CMD in it and press the Enter key to open Command Prompt.
- Type the following command to install the ez_setup:
pip install ez_setup
Installing ez_setup - It will return the successfully installed message with the version name. You can now try using the package install command and see if it works.
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.
Back to top button
независимо от того, какой пакет я пытаюсь установить, я получаю эту ошибку:
error: invalid command 'egg_info'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:userszorpixappdatalocaltemppip-build-Zorpixvirtualenv
Storing complete log in C:UsersZorpixpippip.log
Я видел этот вопрос, но ответ не работает для меня. Я могу установить пакет distribute, который до сих пор является единственным пакетом, который я могу установить, но он не устраняет проблему, поскольку ошибка egg_info возвращается, как только я пытаюсь установить другой пакет. Я очень расстроен этим, так как я не могу найти ничего полезного нигде. У меня также были django и pip и все такое установлен раньше, но мне пришлось переустановить все, и теперь он не работает… Любая помощь будет оценена.
вот журнал она хранится:
------------------------------------------------------------
C:Python27Scriptspip-script.py run on 07/26/13 11:30:42
Downloading/unpacking virtualenv
Getting page https://pypi.python.org/simple/virtualenv/
URLs to search for versions for virtualenv:
* https://pypi.python.org/simple/virtualenv/
Analyzing links from page https://pypi.python.org/simple/virtualenv/
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.tar.gz#md5=36b766604542f2c34d8dffdb21ba14a9 (from https://pypi.python.org/simple/virtualenv/), version: 1.3
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.2.tar.gz#md5=e948af53ad41ca2718c4034484fcd694 (from https://pypi.python.org/simple/virtualenv/), version: 1.6.2
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.tar.gz#md5=dcc105e5a3907a9dcaa978f813a4f526 (from https://pypi.python.org/simple/virtualenv/), version: 1.7
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.2-py2.4.egg#md5=6913c03f02167fe4ac32add76c3edeb7 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.9.tar.gz#md5=c49067cab242b5ff8c7b681a5a99533a (from https://pypi.python.org/simple/virtualenv/), version: 1.4.9
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.tar.gz#md5=88c187a93a78c4c9bd54eef9ef0e0f03 (from https://pypi.python.org/simple/virtualenv/), version: 0.8
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9.1-py2.4.egg#md5=f595300f14597da25feabaececcf62a2 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.3.tar.gz#md5=73a69184e35f1e2c2f9016c889c4d26a (from https://pypi.python.org/simple/virtualenv/), version: 1.6.3
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.3.tar.gz#md5=d635fb7de359ff603a1fc395933724d1 (from https://pypi.python.org/simple/virtualenv/), version: 0.8.3
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.3.tar.gz#md5=d42ab84b1b38258f2a57365841186f71 (from https://pypi.python.org/simple/virtualenv/), version: 1.8.3
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.1.tar.gz#md5=e70ed86cc3823f0b622e80e035b59297 (from https://pypi.python.org/simple/virtualenv/), version: 1.3.1
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.tar.gz#md5=a8c756de9661323b1f95311e79f8a5f3 (from https://pypi.python.org/simple/virtualenv/), version: 1.5
Skipping link https://pypi.python.org/packages/2.6/v/virtualenv/virtualenv-1.3.4-py2.6.egg#md5=f5cf3d4dba3a224351fb5f90f59dae1a (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3-py2.4.egg#md5=ff872f8b8dcb3dc76d9c2793afc9b1a5 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.3-py2.4.egg#md5=fbcb29d72e35ee93d80738d46e69d350 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.4-py2.5.egg#md5=2fd8f371cc83c2a49009e5fe51fcd9c9 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.0.tar.gz#md5=fb86aabdfc2033612b936cf08ad811ec (from https://pypi.python.org/simple/virtualenv/), version: 1.0
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.3-py2.5.egg#md5=7592e9dd19388a037768840caac00255 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.1-py2.5.egg#md5=f042320f7301a77311b876ed55d2a635 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.tar.gz#md5=1a07359ff6e5dbfaefa6381516293b47 (from https://pypi.python.org/simple/virtualenv/), version: 1.7.1
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.3-py2.4.egg#md5=9cd8f513ba25e09be54ead5b1325ad3e (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.2-py2.5.egg#md5=0043570e1c16af8d3c9fa1e99bce012b (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.3.tar.gz#md5=28e2955aed4ffc4dc3df02dc632b5c42 (from https://pypi.python.org/simple/virtualenv/), version: 1.3.3
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.1-py2.4.egg#md5=fa8831295f1073151876375c4567f5cd (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.1.tar.gz#md5=e06efff3c3dd5f88758dde29e108bfdd (from https://pypi.python.org/simple/virtualenv/), version: 1.7.1.1
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.tar.gz#md5=ef70dc53c648f4253335351c65b5740f (from https://pypi.python.org/simple/virtualenv/), version: 1.4
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4rc1.tar.gz#md5=fb62a93b054e877e6a6c92f7dcd0b6ae (from https://pypi.python.org/simple/virtualenv/), version: 1.4rc1
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.4.tar.gz#md5=30f053782cc29363927b848263ae9158 (from https://pypi.python.org/simple/virtualenv/), version: 0.8.4
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9.2-py2.4.egg#md5=319b534ed28e2d31b124b1a76f42fbc7 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9.2-py2.5.egg#md5=7a4d37d0c3f83f917d7a6556f31bb31d (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.2-py2.5.egg#md5=eedbc037902cd2010b055451641addcf (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.2.tar.gz#md5=a013d5a7d9aeddc16bee88604d6de636 (from https://pypi.python.org/simple/virtualenv/), version: 1.3.2
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.tar.gz#md5=17a52f8801cbeb6805f4a4650dc89468 (from https://pypi.python.org/simple/virtualenv/), version: 0.9
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.0-py2.5.egg#md5=e6881a6353543b0af8b116ed8ed2f6f6 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.2.tar.gz#md5=78b6e73600db0d5ed8c0e507f0f7d705 (from https://pypi.python.org/simple/virtualenv/), version: 0.9.2
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.1-py2.5.egg#md5=ad5869374196f7d533a9b649adfe9014 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.8.tar.gz#md5=74ded4025a56e538c1c8df6b9825a8b8 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.8
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.9.1.tar.gz#md5=d9abf1dc9dcaf603c60840c582414f66 (from https://pypi.python.org/simple/virtualenv/), version: 0.9.1
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.4-py2.4.egg#md5=bd62418a72b7e09a637ef368b7b0101b (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.5.tar.gz#md5=d3c621dd9797789fef78442e336df63e (from https://pypi.python.org/simple/virtualenv/), version: 1.4.5
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.tar.gz#md5=b1c585e0bbe4fca56bfa0b34aff87bd9 (from https://pypi.python.org/simple/virtualenv/), version: 1.6
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.2.tar.gz#md5=241f157e92dd9052b5a4b43efcef8035 (from https://pypi.python.org/simple/virtualenv/), version: 0.8.2
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.3.1-py2.4.egg#md5=708cc5281dae7fdd8d996cdb55bef52d (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.2-py2.4.egg#md5=4a92b99c93026031b7298906bf126ccd (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.1.tar.gz#md5=6ab218532376c2a389ef4ea030ff96f2 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.1
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.3-py2.5.egg#md5=fae350c941cd9eadf5e9a407c37a2e03 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.tar.gz#md5=fdab30066a1d731ca6fe22a4c23b9e80 (from https://pypi.python.org/simple/virtualenv/), version: 1.8
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.4.tar.gz#md5=77d675df104b90fceec749150bd5014f (from https://pypi.python.org/simple/virtualenv/), version: 1.3.4
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.2.tar.gz#md5=7b1a10f0e84dd945c9b006ace1e1bb16 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.2
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.8.4-py2.4.egg#md5=6d2db4c08a9b8a7b59e1ab7731791381 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-0.9-py2.4.egg#md5=12b34ae909f578910c293ecfe7c793e3 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.6.tar.gz#md5=f576969d591a054132fe8c9165c2b3c3 (from https://pypi.python.org/simple/virtualenv/), version: 1.4.6
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-0.8.1.tar.gz#md5=5d7b4784f530bd8acf44b568776dbd3c (from https://pypi.python.org/simple/virtualenv/), version: 0.8.1
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.3.tar.gz#md5=2b639cee32d15fd049a49561957afe4b (from https://pypi.python.org/simple/virtualenv/), version: 1.4.3
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.8.4-py2.5.egg#md5=40300b786dad2e8380ef785c4998f421 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.0-py2.4.egg#md5=6199b281bf6e7370d896520eb3a968f8 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.2.tar.gz#md5=7ad454e52f025cad631d03331ade4aaf (from https://pypi.python.org/simple/virtualenv/), version: 1.2
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.2-py2.4.egg#md5=53ab95a286cc0382e503306bb0df9d49 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.2.tar.gz#md5=fbcefbd8520bb64bc24a560c6019a73c (from https://pypi.python.org/simple/virtualenv/), version: 1.5.2
Skipping link https://pypi.python.org/packages/2.4/v/virtualenv/virtualenv-1.1-py2.4.egg#md5=d9b0de14426957e30b2aa7015451aa43 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.4.7-py2.5.egg#md5=e1bb0e1cbc4e2df64dfdde6b0867ef29 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.2.tar.gz#md5=174ca075c6b1a42c685415692ec4ce2e (from https://pypi.python.org/simple/virtualenv/), version: 1.8.2
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.1.tar.gz#md5=1a475df2219457b6b4febb9fe595d915 (from https://pypi.python.org/simple/virtualenv/), version: 1.6.1
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.1.tar.gz#md5=3daa1f449d5d2ee03099484cecb1c2b7 (from https://pypi.python.org/simple/virtualenv/), version: 1.5.1
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.4.tar.gz#md5=94161ae1500cb3a8b003c0c394c9dbbd (from https://pypi.python.org/simple/virtualenv/), version: 1.4.4
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4.7.tar.gz#md5=979a7adf8467df7df800a45debd2074f (from https://pypi.python.org/simple/virtualenv/), version: 1.4.7
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.2.tar.gz#md5=b5d63b05373a4344ae099a68875aae78 (from https://pypi.python.org/simple/virtualenv/), version: 1.7.2
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.4.tar.gz#md5=1c7e56a7f895b2e71558f96e365ee7a7 (from https://pypi.python.org/simple/virtualenv/), version: 1.8.4
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.2.tar.gz#md5=3be8a014c27340f48b56465f9109d9fa (from https://pypi.python.org/simple/virtualenv/), version: 1.7.1.2
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.tar.gz#md5=e03b76752b8ce7eee67c6298414cac79 (from https://pypi.python.org/simple/virtualenv/), version: 1.9
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.1.tar.gz#md5=3aebe32859aa4512e1e679834c10f7bf (from https://pypi.python.org/simple/virtualenv/), version: 1.8.1
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9.1-py2.5.egg#md5=573b8bd74a7b9b207b5eede8db386953 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.1.tar.gz#md5=8931b66dbb799120583dd107aab2fa89 (from https://pypi.python.org/simple/virtualenv/), version: 1.1
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3-py2.5.egg#md5=8102d251e3f1caf709722679a737f454 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.1-py2.5.egg#md5=1db8cdd823739c79330a138327239551 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz#md5=1072b66d53c24e019a8f1304ac9d9fc5 (from https://pypi.python.org/simple/virtualenv/), version: 1.6.4
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.2-py2.5.egg#md5=f2cd2b10b8be8b57e74cb1830fc0b504 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-0.9-py2.5.egg#md5=7c8e85680f1ede0844a496513366d7a5 (from https://pypi.python.org/simple/virtualenv/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.tar.gz#md5=9745c28256c70c76d36adb3767a00212 (from https://pypi.python.org/simple/virtualenv/), version: 1.10
Found link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz#md5=07e09df0adfca0b2d487e39a4bf2270a (from https://pypi.python.org/simple/virtualenv/), version: 1.9.1
Ignoring link https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.4rc1.tar.gz#md5=fb62a93b054e877e6a6c92f7dcd0b6ae (from https://pypi.python.org/simple/virtualenv/), version 1.4rc1 is a pre-release (use --pre to allow).
Using version 1.10 (newest of versions: 1.10, 1.9.1, 1.9, 1.8.4, 1.8.3, 1.8.2, 1.8.1, 1.8, 1.7.2, 1.7.1.2, 1.7.1.1, 1.7.1, 1.7, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6, 1.5.2, 1.5.1, 1.5, 1.4.9, 1.4.8, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3, 1.2, 1.1, 1.0, 0.9.2, 0.9.1, 0.9, 0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8)
Downloading from URL https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.tar.gz#md5=9745c28256c70c76d36adb3767a00212 (from https://pypi.python.org/simple/virtualenv/)
Running setup.py egg_info for package virtualenv
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'entry_points'
warnings.warn(msg)
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
Complete output from command python setup.py egg_info:
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'entry_points'
warnings.warn(msg)
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
----------------------------------------
Cleaning up...
Removing temporary dir c:usersjoeyappdatalocaltemppip-build-Joey...
Command python setup.py egg_info failed with error code 1 in c:usersjoeyappdatalocaltemppip-build-Joeyvirtualenv
Exception information:
Traceback (most recent call last):
File "C:Python27libsite-packagespipbasecommand.py", line 134, in main
status = self.run(options, args)
File "C:Python27libsite-packagespipcommandsinstall.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:Python27libsite-packagespipreq.py", line 1124, in prepare_files
req_to_install.run_egg_info()
File "C:Python27libsite-packagespipreq.py", line 257, in run_egg_info
command_desc='python setup.py egg_info')
File "C:Python27libsite-packagespiputil.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in c:usersjoeyappdatalocaltemppip-build-Joeyvirtualenv
редактировать:
Не уверен, что я сделал, но теперь я получаю эту ошибку:
ImportError: No module named setuptools.command
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:usersjoeyappdatalocaltemppip-build-JoeyDjango
Storing complete log in C:UsersJoeypippip.log
что это за настройки, которые я пропускаю?
10 ответов
выяснил, что случилось. Я никогда не устанавливал setuptools для python, поэтому в нем отсутствовали некоторые важные файлы, такие как egg.
Если у вас есть моя проблема выше, скачайте этот файл а затем в powershell или командной строке перейдите в каталог ez_setup и выполните команду, и это запустит файл для вас:
$ [sudo] python ez_setup.py
Если вам все еще нужно установить pip на данный момент, запустите:
$ [sudo] easy_install pip
easy_install был частью из setuptools, и поэтому не будет работать для установки pip.
затем pip успешно установит django с помощью команды:
$ [sudo] pip install django
надеюсь, я спас кого-то головную боль, которую я дал себе!
~Zorpix
142
автор: Riot Goes Woof
попробуйте эти:
pip install --upgrade setuptools
или easy_install -U setuptools
в моем случае это сообщение об ошибке появилось, потому что пакет, который я пытался установить (storm), не поддерживался для Python 3.
имея ту же ошибку, пытаясь установить matplotlib для Python 3, эти решения не работали для меня. Это был просто вопрос зависимостей, хотя это не было ясно в сообщении об ошибке.
Я sudo apt-get build-dep python3-matplotlib
затем sudo pip3 install matplotlib
и это сработало.
надеюсь, это поможет !
Я пытался установить pyautogui и следовал инструкциям из первого ответа, но не увенчался успехом. Разница для меня была в беге pip install pillow
и потом работает pip install pyautogui
Я не знаю, что это значит, но я надеюсь, что это поможет некоторым людям.
Я добавлю это здесь, так как у моей проблемы было что-то с моим virtualenv
:
Я не активировал свою виртуальную среду и пытался установить свои требования, что в конечном итоге привело к сбою установки и появлению этого сообщения об ошибке.
Так убедитесь, что вы активируете virtualenv!
virtualenv-это инструмент для создания изолированных сред Python.
вам нужно будет добавить следующее, чтобы исправить команду python setup.py egg_info не удалось с кодом ошибки 1, поэтому внутри ваших требований.тхт добавить это:
virtualenv==12.0.7
в моем случае, мне пришлось удалить pip и переустановить его. Чтобы я мог установить свою конкретную версию.
sudo apt-get purge --auto-remove python-pip
sudo easy_install pip
-
Partition Wizard
-
Partition Manager
- Python Setup.py egg_info Failed with Error Code 1? [Fixed]
By Ariel | Follow |
Last Updated December 28, 2022
When trying to install some packages with pip, a lot of users receive the “command «python setup.py egg_info» failed with error code 1” message. Fortunately, MiniTool summarizes several proven solutions to the error. Let’s start trying.
What causes the python setup.py egg_info failed with error code 1? According to user reports, the error often occurs when your pip or setuptools is outdated or installed improperly. If the ez_setup module is missing from your computer, you may also receive the pip install failed with error code 1. Here we provide 4 applicable ways to fix it. You can try them in order until the error gets resolved.
I’m new to Python and have been trying to install some packages with pip. But pip install unroll gives me: Command «python setup.py egg_info» failed with error code 1 in C:UsersMARKAN~1AppDataLocalTemppip-build-wa7uco0kunroll. How can I solve this?https://stackoverflow.com/questions/35991403/pip-install-unroll-python-setup-py-egg-info-failed-with-error-code-1
First of all, you should check if the pip and setuptools have been installed on your computer. It will show you the current version numbers of them. Once you find your pip or setuptools version is outdated, you can continue the following solutions to update them.
Here’s how to check the pip and setuptools installed version.
Step 1. Type cmd in the search box on the taskbar. And then right-click the Command Prompt app and select Run as administrator.
Step 2. In the elevated Command Prompt window, type the pip list command and hit Enter. Now, you can see the pip and setuptools version numbers are the lasted versions. If not, you can proceed with the following fixes to update them.
Tip: If the setuptools don’t appear in the list, you can install it from the PyPi official website.
If you have already installed the setuptools, you can follow the steps below to update it to the latest version.
Step 1. Open the elevated Command Prompt just like Step 1 in the above fix.
Step 2. Type the following command and hit Enter to update the setuptools.
Note: If you are on the Terminal window, make sure you run sudo pip install –upgrade setuptools.
pip install –upgrade setuptools
Once updated successfully, you can try installing the package again and see if the command «python setup.py egg_info» failed with error code 1 still appears.
Fix 3. Upgrade Pip
The command python setup.py egg_info failed with error code 1 can also be caused by the pip itself. If you are using an old version of pip, we recommend you update it to the latest version. To do so, you just need to run python -m pip install -U pip in the elevated Command Prompt.
Tip: If this command can’t fix the pip error code 1, you can try running the python3 -m pip3 install -U pip command.
Fix 4. Install the ez_setup Module
Sometimes the command python setup.py egg_info failed with error code 1 just occurs because the ez_setup module is missing from your system. In this case, installing ez_setup can help you fix the error.
Step 1. Open the elevated Command Prompt window again, and then type pip install ez_setup in it and hit Enter.
Step 2. If not working, try running the pip install unroll command.
Step 3. If it’s still not working, it’s possible that your pip didn’t install/upgrade properly. To fix it, try running the easy_install -U setuptools command. And run pip install unroll again.
After you installed ez_setup module successfully, try installing the package and see if the pip error code 1 gets fixed.
About The Author
Position: Columnist
Ariel is an enthusiastic IT columnist focusing on partition management, data recovery, and Windows issues. She has helped users fix various problems like PS4 corrupted disk, unexpected store exception error, the green screen of death error, etc. If you are searching for methods to optimize your storage device and restore lost data from different storage devices, then Ariel can provide reliable solutions for these issues.