相关疑难解决方法(0)

从Jupyter笔记本中安装pip包不起作用

当我!pip install geocoder在Jupyter Notebook中运行时,我获得与pip install geocoder在终端中运行相同的输出,但是当我尝试导入时,地理编码器包不可用.

我正在使用Ubuntu 14.04,Anaconda 4.0.0和pip 8.1.2

安装地理编码器:

!pip install geocoder

The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the …
Run Code Online (Sandbox Code Playgroud)

python ipython anaconda jupyter jupyter-notebook

34
推荐指数
4
解决办法
7万
查看次数

在pip3中安装jupyterlab会抛出'TypeError:期望的字符串或类似字节的对象'

背景

  • 我试图使用安装Jupyter实验室pip3 install jupyterlab,并且它抛出了同样的错误.

  • 我没弄清楚.找到一个使用的解决方法pip2 install jupyterlab- 它工作,但显然是一个绑定修复.

  • 尝试import pandas as pd在python3笔记本中运行(在jupyter实验室内); 找不到模块.

  • 我在PC上使用Cygwin作为我的linux模拟器.

  • 我更喜欢python3.x而不是python 2.7.

我试图解决这个问题

我很难解释Traceback,但现在它在下面:

$ pip install --upgrade pip
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python3.6/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 487, …
Run Code Online (Sandbox Code Playgroud)

python python-3.x jupyter-notebook jupyter-lab

6
推荐指数
1
解决办法
1289
查看次数