gpt4 book ai didi

python - vagrant 和 ubunutu : pip install jupyter error: Storing debug log for failure in/home/vagrant/. pip/pip.log

转载 作者:太空宇宙 更新时间:2023-11-03 14:54:01 24 4
gpt4 key购买 nike

我想在 ubuntu 14.04(vagrant) 上安装 jupyter,命令是 sudo pip install jupyter,但是有错误,你能告诉我如何解决吗。

vagrant@vagrant-ubuntu-trusty-64:~$ pip install jupyter
Downloading/unpacking jupyter
Downloading jupyter-1.0.0-py2.py3-none-any.whl
Downloading/unpacking ipywidgets (from jupyter)
Downloading ipywidgets-6.0.0-py2.py3-none-any.whl (46kB): 46kB downloaded
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 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundl e=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_file s
req_to_install.extras):
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resourc es.py", line 2291, in requires
dm = self._dep_map
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resourc es.py", line 2484, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resourc es.py", line 2508, in _compute_dependencies
parsed = next(parse_requirements(distvers))
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resourc es.py", line 45, in <lambda>
next = lambda o: o.next()
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resourc es.py", line 2605, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resourc es.py", line 2573, in scan_list
raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'widgetsnbextension ~=2.0.0', 'at', ' ~ =2.0.0')

Storing debug log for failure in /home/vagrant/.pip/pip.log

最佳答案

我解决了。由于pip版本是1.5.4(可以通过pip -V确认),所以需要升级pip。一开始,我无法升级 pip:pip install --upgrade pip。我使用另一种方式升级 pip ( https://askubuntu.com/questions/775942/how-to-install-the-latest-version-of-pip-when-i-already-installed-the-provided-b ):

wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
tar -xzvf pip-8.1.2.tar.gz
cd pip-8.1.2
sudo python setup.py install

然后通过以下方式升级到最新版本的 pip:pip install --upgrade pip

然后我可以通过以下方式安装 jupyter:sudo pip install jupyter。

关于python - vagrant 和 ubunutu : pip install jupyter error: Storing debug log for failure in/home/vagrant/. pip/pip.log,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44014318/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com