Главная » Ошибки » How to Solve Error Message Command “python setup

How to Solve Error Message Command “python setup

Introduction

Actually, the main purpose of this article is to solve an error message appear. It is basically referring to the actual occurrence where the error happened. The error message appear when executing a ‘pip install command’. Upon executing the command for installing necessary module or library specified in the requirements.txt file, the error appear. The following is the actual execution of the command which is triggering the error message to appear :

[django@localhost project]$ pip install -r requirements.txt
Collecting asgiref==3.4.1 (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/07/93/3618b68b4ba6b54bc97b5fd7d90e4981471edfaf51c8321a29a3c76cf47c/asgiref-3.4.1.tar.gz
Running setup.py (path:/tmp/pip-build-XPwxXf/asgiref/setup.py) egg_info for package asgiref produced metadata for project name unknown. Fix your #egg=asgiref fragments.
Requirement already satisfied (use –upgrade to upgrade): unknown from https://files.pythonhosted.org/packages/07/93/3618b68b4ba6b54bc97b5fd7d90e4981471edfaf51c8321a29a3c76cf47c/asgiref-3.4.1.tar.gz#sha256=4ef1ab46b484e3c706329cedeff284a5d40824200638503f5768edb6de7d58e9 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Collecting autopep8==1.5.7 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/a7/f6/84070ab117e6b080a87aac0ac9e4d269a66c6f6076ad81509bd0aac828d8/autopep8-1.5.7-py2.py3-none-any.whl (45kB)
100% |████████████████████████████████| 51kB 904kB/s
Collecting cachetools==4.2.4 (from -r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/d7/69/c457a860456cbf80ecc2e44ed4c201b49ec7ad124d769b71f6d0a7935dca/cachetools-4.2.4.tar.gz
Running setup.py (path:/tmp/pip-build-XPwxXf/cachetools/setup.py) egg_info for package cachetools produced metadata for project name unknown. Fix your #egg=cachetools fragments.
Requirement already satisfied (use –upgrade to upgrade): unknown from https://files.pythonhosted.org/packages/d7/69/c457a860456cbf80ecc2e44ed4c201b49ec7ad124d769b71f6d0a7935dca/cachetools-4.2.4.tar.gz#sha256=89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 3))
Collecting certifi==2021.5.30 (from -r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/05/1b/0a0dece0e8aa492a6ec9e4ad2fe366b511558cdc73fd3abc82ba7348e875/certifi-2021.5.30-py2.py3-none-any.whl (145kB)
100% |████████████████████████████████| 153kB 4.7MB/s
Collecting charset-normalizer==2.0.7 (from -r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/9f/c5/334c019f92c26e59637bb42bd14a190428874b2b2de75a355da394cf16c1/charset-normalizer-2.0.7.tar.gz (362kB)
100% |████████████████████████████████| 368kB 2.8MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File ““, line 1, in
File “/tmp/pip-build-XPwxXf/charset-normalizer/setup.py”, line 44, in
long_description=long_description.replace(‘:heavy_check_mark:’, ‘✅’),
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 0: ordinal not in range(128)

—————————————-
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-XPwxXf/charset-normalizer/

After facing the error above while thinking about the solution, the following are the attempt for solving the problem :

Try to update the version of the ‘pip’ by executing the following command :

[django@localhost project]$ python3 -m pip install -U pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 678kB/s
Installing collected packages: pip
Exception:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3.6/site-packages/pip/commands/install.py”, line 365, in run
strip_file_prefix=options.strip_file_prefix,
File “/usr/lib/python3.6/site-packages/pip/req/req_set.py”, line 789, in install
**kwargs
File “/usr/lib/python3.6/site-packages/pip/req/req_install.py”, line 854, in install
strip_file_prefix=strip_file_prefix
File “/usr/lib/python3.6/site-packages/pip/req/req_install.py”, line 1069, in move_wheel_files
strip_file_prefix=strip_file_prefix,
File “/usr/lib/python3.6/site-packages/pip/wheel.py”, line 345, in move_wheel_files
clobber(source, lib_dir, True)
File “/usr/lib/python3.6/site-packages/pip/wheel.py”, line 287, in clobber
ensure_dir(dest) # common for the ‘include’ path
File “/usr/lib/python3.6/site-packages/pip/utils/__init__.py”, line 83, in ensure_dir
os.makedirs(path)
File “/usr/lib64/python3.6/os.py”, line 210, in makedirs
makedirs(head, mode, exist_ok)
File “/usr/lib64/python3.6/os.py”, line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.6’

[django@localhost project]$
[django@localhost project]$ exit
logout

Какими средствами сделать веб-интерфейс работы с БД?

  • 2 подписчика
  • 11 часов назад
  • 179 просмотров

ответа
4

  • python
    • Python

    • +2 ещё

    Средний

  • Как вывести наиболее повторяющийся элемент в списке?

    • 1 подписчик
    • час назад
    • 38 просмотров

    ответа
    2

  • python
    • Python

    • +1 ещё

    Простой

  • Как при отсутствии интернета, перезапустить код(телеграмPyTelegramBot)?

    • 1 подписчик
    • 3 часа назад
    • 33 просмотра

    ответов
    0

  • python
    • Python

    Простой

  • Как сделать неактивную InlineKeyboardButton в aiogram?

    • 1 подписчик
    • час назад
    • 10 просмотров

    ответов
    0

  • python
    • Python

    Простой

  • Как открыть сайт в браузере написанный на Python?

    • 1 подписчик
    • 4 часа назад
    • 120 просмотров

    ответ
    1

  • javascript
    • JavaScript

    • +3 ещё

    Средний

  • Источники

    • https://www.dark-hamster.com/operating-system/how-to-solve-error-message-command-python-setup-py-egg_info-failed-with-error-code-1-in-tmp-pip-build-xpwxxf-charset-normalizer-when-running-pip-install/
    • https://qna.habr.com/q/1129128
    [свернуть]
    Решите Вашу проблему!


    ×
    Adblock
    detector