首先,我是 python 和 anaconda 的新手,所以在回答我的问题时请考虑到这一点 :)。
我有一个 Jupyter 笔记本,我想使用 geograpy那里的图书馆。但我不知道如何将它安装到 anaconda 中。
在这个图书馆网站上有如何使用 pip 安装它的手册 - 但我相信这是另外一回事。
任何提示都非常受欢迎:)
编辑
尝试 pip install geograpy
后出现以下错误
Rolling back uninstall of Pillow
Command "/opt/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tcpdwncf/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-az_qg2uz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-tcpdwncf/Pillow/
最佳答案
应该有一个可以导航到的 Anaconda Prompt(使用 Windows 搜索栏)(打开后看起来像一个命令窗口),并且
pip install geography
应该在那里工作。对此可能有更技术性的答案,但当 pip install 不在命令窗口中时,这种方法对我总是有效。
关于python - python 和地理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43214774/