N
N
Nyxoy2021-11-27 19:12:52
Python
Nyxoy, 2021-11-27 19:12:52

Error installing Python on Windows 11, what should I do?


Microsoft Windows error [Version 10.0.22000.194]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Arthur>pip install discord
Collecting discord
Using cached discord-1.7.3-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.7.3
Using cached discord.py-1.7.3- py3-none-any.whl (786 kB)
Collecting aiohttp<3.8.0,>=3.6.0
Using cached aiohttp-3.7.4.post0.tar.gz (1.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\ _vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\E8E5~1\AppData\Local\Temp\tmps3ioaao8'
cwd: C:\Users\Arthur\AppData\Local\Temp\pip-install-ug7txd8p\ aiohttp_b49bee3927de4be6b8da391208e546ed
Complete output (25 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe0 in position 0: invalid continuation byte (sitecustomize.py, line 7)
running dist_info
creating C:\Users\Arthur\AppData\ Local\Temp\pip-modern-metadata-a7rv6q3n\aiohttp.egg-info
writing C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-a7rv6q3n\aiohttp.egg-info\PKG-INFO
writing dependency_links to C:\Users\Arthur\AppData\Local\Temp\pip-modern -metadata-a7rv6q3n\aiohttp.egg-info\dependency_links.txt
writing requirements to C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-a7rv6q3n\aiohttp.egg-info\requires.txt
writing top- level names to C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-a7rv6q3n\aiohttp.egg-info\top_level.txt
writing manifest file 'C:\Users\Arthur\AppData\Local\Temp\ pip-modern-metadata-a7rv6q3n\aiohttp.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-a7rv6q3n\aiohttp.egg-info\SOURCES .txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no-included files matching '*.pyd' found anywhere in distribution
warning: no previously previously -included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp\*.html'
no previously-included directories found matching 'docs\_build'
adding license file 'LICENSE.txt'
writing manifest file 'C:\Users\Arthur\AppData\Local \Temp\pip-modern-metadata-a7rv6q3n\aiohttp.egg-info\SOURCES.txt'
creating 'C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-a7rv6q3n\aiohttp.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/99/f5/90ed... (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.6). Command errored out with exit status 1: 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\lib\ site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\E8E5~1\AppData\Local\Temp\tmps3ioaao8' Check the logs for full command output.
Using cached aiohttp-3.7.4.tar.gz (1.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status one:
command: 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\ _vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\E8E5~1\AppData\Local\Temp\tmp2ly9t1gl'
cwd: C:\Users\Arthur\AppData\Local\Temp\pip-install-ug7txd8p\ aiohttp_8a5b0683d9d048f18176c212abcdc17d
Complete output (25 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe0 in position 0: invalid continuation byte (sitecustomize.py, line 7)
running dist_info
creating C:\Users\Arthur\AppData\ Local\Temp\pip-modern-metadata-8t55jwha\aiohttp.egg-info
writing C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-8t55jwha\aiohttp.egg-info\PKG-INFO
writing dependency_links to C:\Users\Arthur\AppData\Local\Temp\pip-modern -metadata-8t55jwha\aiohttp.egg-info\dependency_links.txt
writing requirements to C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-8t55jwha\aiohttp.egg-info\requires.txt
writing top- level names to C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-8t55jwha\aiohttp.egg-info\top_level.txt
writing manifest file 'C:\Users\Arthur\AppData\Local\Temp\ pip-modern-metadata-8t55jwha\aiohttp.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-8t55jwha\aiohttp.egg-info\SOURCES .txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no-included files matching '*.pyd' found anywhere in distribution
warning: no previously previously -included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp\*.html'
no previously-included directories found matching 'docs\_build'
adding license file 'LICENSE.txt'
writing manifest file 'C:\Users\Arthur\AppData\Local \Temp\pip-modern-metadata-8t55jwha\aiohttp.egg-info\SOURCES.txt'
creating 'C:\Users\Arthur\AppData\Local\Temp\pip-modern-metadata-8t55jwha\aiohttp.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7a/95/eb60... (from https://pypi.org/simple/aiohttp/) (requires-python:>=3.6). Command errored out with exit status 1: 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Arthur\AppData\Local\Programs\Python\Python310\lib\ site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\E8E5~1\AppData\Local\Temp\tmp2ly9t1gl' Check the logs for full command output.
Using cached aiohttp-3.7.3.tar.gz (1.1 MB)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andy_U, 2021-11-27
@Andy_U

Point by point:
1) Russian letters are on the way. An old problem with pip.
2) No package wheel.
3) Lack of MS Build Tools. Somewhere on the microsoft site ...
4) Well, Python is not installed in Program Files, and here Russian characters are on the way, and perhaps not from the python.org site, but from the MS Store?)
And so, everything is going and installed on Python 3.10 (64-bit).

See the installation protocol (in a virtual environment, of course):

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

(.venv310) D:\My Documents\PycharmProjects\c19ya>pip install discord
Collecting discord
  Downloading discord-1.7.3-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.7.3
  Downloading discord.py-1.7.3-py3-none-any.whl (786 kB)
     |████████████████████████████████| 786 kB 3.3 MB/s
Collecting aiohttp<3.8.0,>=3.6.0
  Downloading aiohttp-3.7.4.post0.tar.gz (1.1 MB)
     |████████████████████████████████| 1.1 MB 6.4 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.7.2-cp310-cp310-win_amd64.whl (122 kB)
     |████████████████████████████████| 122 kB 6.4 MB/s
Collecting typing-extensions>=3.6.5
  Downloading typing_extensions-4.0.0-py3-none-any.whl (22 kB)
Collecting multidict<7.0,>=4.5
  Downloading multidict-5.2.0-cp310-cp310-win_amd64.whl (45 kB)
     |████████████████████████████████| 45 kB ...
Collecting chardet<5.0,>=2.0
  Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
     |████████████████████████████████| 178 kB 6.8 MB/s
Collecting attrs>=17.3.0
  Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
     |████████████████████████████████| 53 kB ...
Collecting async-timeout<4.0,>=3.0
  Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting idna>=2.0
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB ...
Building wheels for collected packages: aiohttp
  Building wheel for aiohttp (pyproject.toml) ... done
  Created wheel for aiohttp: filename=aiohttp-3.7.4.post0-py3-none-any.whl size=451944 sha256=295a5973c8ef6d5e7beb25a0b1826debe65c61e00afee3e97c007c071f295665
  Stored in directory: C:\Users\Andrew\AppData\Local\Temp\pip-ephem-wheel-cache-4m9jjg24\wheels\fc\84\e0\52113c57eb9b09b6b187a0f369eaad6fc7fc64bb7247c83b89
Successfully built aiohttp
Installing collected packages: multidict, idna, yarl, typing-extensions, chardet, attrs, async-timeout, aiohttp, discord.py, discord
Successfully installed aiohttp-3.7.4.post0 async-timeout-3.0.1 attrs-21.2.0 chardet-4.0.0 discord-1.7.3 discord.py-1.7.3 idna-3.3 multidict-5.2.0 typing-extensions-4.0.0 yarl-1.7.2

(.venv310) D:\My Documents\PycharmProjects\c19ya>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question