无法在 python 任何地方安装自定义 python 模块
Failed to install a custom python module in pythonanywhere
所以我在python任何地方都是新来的。我试图为自己安装自定义 python 模块 (dryscrape) 但失败了。我没有在 python 任何地方将它加载到我的文件系统中。我用 python 2.6
那么,什么是 wrong/missing:
~ $ pip2.6 install --igorsavinkin dryscrape
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --igorsavinkin
~ $ pip2.6 install dryscrape
Collecting dryscrape
Could not find any downloads that satisfy the requirement dryscrape
No distributions at all found for dryscrape
尝试从 github 中包含它,但也失败了
~ $ pip2.6 install https://github.com/niklasb/dryscrape
Collecting https://github.com/niklasb/dryscrape
Downloading https://github.com/niklasb/dryscrape
| 45kB 14.1MB/s
Cannot unpack file /tmp/pip-53bAWe-unpack/dryscrape (downloaded from /tmp/pip-4KCbIJ-build,
content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-4KCbIJ-build
我应该先下载到文件系统吗?
请注意,dryscrape 是为 Python 2.7+ 编写的 我在 pythonanywhere
中成功安装了 dryscrape
:
git clone https://github.com/niklasb/dryscrape.git dryscrape
cd dryscrape
#try this in virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
然后安装dryscrape
python setup.py install
来自文档 http://dryscrape.readthedocs.org/en/latest/installation.html
所以我在python任何地方都是新来的。我试图为自己安装自定义 python 模块 (dryscrape) 但失败了。我没有在 python 任何地方将它加载到我的文件系统中。我用 python 2.6 那么,什么是 wrong/missing:
~ $ pip2.6 install --igorsavinkin dryscrape
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --igorsavinkin
~ $ pip2.6 install dryscrape
Collecting dryscrape
Could not find any downloads that satisfy the requirement dryscrape
No distributions at all found for dryscrape
尝试从 github 中包含它,但也失败了
~ $ pip2.6 install https://github.com/niklasb/dryscrape
Collecting https://github.com/niklasb/dryscrape
Downloading https://github.com/niklasb/dryscrape
| 45kB 14.1MB/s
Cannot unpack file /tmp/pip-53bAWe-unpack/dryscrape (downloaded from /tmp/pip-4KCbIJ-build,
content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-4KCbIJ-build
我应该先下载到文件系统吗?
请注意,dryscrape 是为 Python 2.7+ 编写的 我在 pythonanywhere
中成功安装了 dryscrape
:
git clone https://github.com/niklasb/dryscrape.git dryscrape
cd dryscrape
#try this in virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
然后安装dryscrape
python setup.py install
来自文档 http://dryscrape.readthedocs.org/en/latest/installation.html