无法创建'C:\ Program Files \ Python36 \ Lib \ site-packages \ flask_script':拒绝访问

来源:4-9 打造高可用flask mvc框架

慕田峪1533028

2019-12-20

ERROR: Command errored out with exit status 1:
     command: 'C:\Program Files\Python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-gef39ybk\\flask-script
\\setup.py'"'"'; __file__='"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-gef39ybk\\flask-script\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().
replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\dell\AppData\Local\Temp\pip-record-rdntu2s5\install-record.txt'
--single-version-externally-managed --compile
         cwd: C:\Users\dell\AppData\Local\Temp\pip-install-gef39ybk\flask-script\
    Complete output (13 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\flask_script
    copying flask_script\cli.py -> build\lib\flask_script
    copying flask_script\commands.py -> build\lib\flask_script
    copying flask_script\_compat.py -> build\lib\flask_script
    copying flask_script\__init__.py -> build\lib\flask_script
    running install_lib
    creating C:\Program Files\Python36\Lib\site-packages\flask_script
    error: could not create 'C:\Program Files\Python36\Lib\site-packages\flask_script': 拒绝访问。
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\p
ip-install-gef39ybk\\flask-script\\setup.py'"'"'; __file__='"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-gef39ybk\\flask-script\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"
', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\dell\AppData\Local\Temp\pip-rec
ord-rdntu2s5\install-record.txt' --single-version-externally-managed --compile Check the logs for full

写回答

1回答

编程浪子

2019-12-20

你好

creating C:\Program Files\Python36\Lib\site-packages\flask_script
    error: could not create 'C:\Program Files\Python36\Lib\site-packages\flask_script': 拒绝访问。

这个提示就是没有权限

那你自己去创建一个 路径是这个: C:\Program Files\Python36\Lib\site-packages\flask_script

自己创建一个对应的目录出来,然后在安装

0
0

Python Flask构建微信小程序订餐系统(可用于毕设)

微信小程序 + Python Flask 打造订餐系统全栈应用,可用于毕设。

1709 学习 · 1889 问题

查看课程