请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

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

正在回答 回答被采纳积分+3

1回答

编程浪子 2019-12-20 12:27:38

你好

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 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信