在安装python3.8安装pyinstaller时遇到了巨大的问题T_T

首先采用下载pyinstaller-develop之后在命令行使用pip install安装:

pip3 install D:\pythonpackge\pyinstaller-develop.tar.gz

但是出现了以下错误:

 ERROR: Command errored out with exit status 1:
   command: 'C:\Users\liuyu\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\liuyu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\liuyu\AppData\Local\Temp\pip-build-env-diic5ygj\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
       cwd: None
  Complete output (4 lines):
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
  ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
  ERROR: No matching distribution found for setuptools>=40.8.0
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\liuyu\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\liuyu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\liuyu\AppData\Local\Temp\pip-build-env-diic5ygj\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

我用的setup是41.2.0的,但是上面的错误信息似乎表明我应该使用40.8.0版本的,然而并不知道怎么改。。

之后使用了用python install来安装:

python D:\pythonpackge\why\setup.py install

但是出现了这样的问题:

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-9552.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.readthedocs.io/en/latest/easy_install.html

Please make the appropriate changes for your system and try again.

对于PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0这个文件夹及其子文件我已经将我自己的用户取得了完全控制的权限(如图),但是上面的报错信息仍然显示我没有权限,并且我自己手动向里面添加文件的时候系统也会显示我没有权限(如图),怎么会这样啊。。。
在安装python3.8安装pyinstaller时遇到了巨大的问题T_T_第1张图片
在安装python3.8安装pyinstaller时遇到了巨大的问题T_T_第2张图片
有没有大佬知道这个东西应该怎么解决啊 T_T

你可能感兴趣的:(python,windows)