当我!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) 背景
我试图使用安装Jupyter实验室pip3 install jupyterlab,并且它抛出了同样的错误.
我没弄清楚.找到一个使用的解决方法pip2 install jupyterlab- 它工作,但显然是一个绑定修复.
尝试import pandas as pd在python3笔记本中运行(在jupyter实验室内); 找不到模块.
我在PC上使用Cygwin作为我的linux模拟器.
我更喜欢python3.x而不是python 2.7.
我试图解决这个问题
类似报道的JupyterLab帖子 - 我在这里发现了这篇文章:在jupyter ipython笔记本上导入pandas失败,但我相信作者正在使用anaconda(我不是)并且Type Error是不同的.
我找到了一个与我的TypeError相关的帖子,但这是他正在编写的代码:获取TypeError:期望的字符串或类似字节的对象.
我很难解释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)