pip在Windows bash上安装烧瓶bash不能正常工作
问题描述:
我正尝试在Windows 10上用Ubuntu将bash安装在烧瓶上,但它不工作。我安装了pip,并运行Python 3.5。下面是命令行和异常错误的副本。任何帮助将不胜感激!pip在Windows bash上安装烧瓶bash不能正常工作
[email protected]_PC:~$ cd Project
bash: cd: Project: No such file or directory
[email protected]_PC:~$ cd Projects
[email protected]_PC:~/Projects$ cd py
[email protected]_PC:~/Projects/py$ cd myflaskapp
[email protected]_PC:~/Projects/py/myflaskapp$ pip install flask
Downloading/unpacking flask
Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB): 83kB downloaded
Downloading/unpacking itsdangerous>=0.21 (from flask)
Downloading itsdangerous-0.24.tar.gz (46kB): 46kB downloaded
Running setup.py (path:/tmp/pip_build_scot/itsdangerous/setup.py) egg_info for package itsdangerous
warning: no previously-included files matching '*' found under directory 'docs/_build'
Downloading/unpacking Werkzeug>=0.7 (from flask)
Downloading Werkzeug-0.12.2-py2.py3-none-any.whl (312kB): 312kB downloaded
Downloading/unpacking Jinja2>=2.4 (from flask)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB): 340kB downloaded
Downloading/unpacking click>=2.0 (from flask)
Downloading click-6.7-py2.py3-none-any.whl (71kB): 71kB downloaded
Downloading/unpacking MarkupSafe>=0.23 (from Jinja2>=2.4->flask)
Downloading MarkupSafe-1.0.tar.gz
Running setup.py (path:/tmp/pip_build_scot/MarkupSafe/setup.py) egg_info for package MarkupSafe
Installing collected packages: flask, itsdangerous, Werkzeug, Jinja2, click, MarkupSafe
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber
os.makedirs(destsubdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Flask-0.12.2.dist-info'
Storing debug log for failure in /home/scot/.pip/pip.log
答
你能用sudo
前缀?所以sudo pip install flask
?或者如果你在Windows上可以用管理员权限打开bash提示符?
+0
我认为这工作!非常感谢你! (在管理员和sudo中运行)。 –
+0
你能否最好的选择我的答案并结束这个问题?很高兴我能帮上忙 :) –
其实运行python 3.4 !!!对困惑感到抱歉。 –
当你说在Windows上运行bash在ubuntu上时,你是什么意思?准确的设置是什么? – Nalaurien
请点击更新澄清上面的设置,看看我的意思。这个应用程序在windows上的字面意思是叫做bash haha。我对Web框架非常陌生,特别是类似Linux的东西,所以我很抱歉我没有比这更好的答案。 –