我最近从here那里获得了便携式python 2.7.6.1
我需要为此安装pyreadline
我从https://pypi.org/project/pyreadline/#files
下载了pyreadline zip文件。此zip文件是否足以在便携式python中安装pyreadline?我没有使用python的经验,但是我读过其他有关人们试图将模块安装到便携式python的文章,所以我猜应该有可能
我尝试在命令提示符下使用easy_setup pip
安装pip,但出现以下错误:
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
Best match: None
Traceback (most recent call last):
File "D:\data_aba\python files\python_portable_2761\App\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "D:\data_aba\python files\python_portable_2761\App\lib\site-packages\setuptools\command\easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "D:\data_aba\python files\python_portable_2761\App\lib\site-packages\setuptools\command\easy_install.py", line 1700, in with_ei_usage
return f()
File "D:\data_aba\python files\python_portable_2761\App\lib\site-packages\setuptools\command\easy_install.py", line 1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "D:\data_aba\python files\python_portable_2761\App\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "D:\data_aba\python files\python_portable_2761\App\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "D:\data_aba\python files\python_portable_2761\App\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\data_aba\python files\python_portable_2761\App\lib\site-packages\setuptools\command\easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "D:\data_aba\python files\python_portable_2761\App\lib\site-packages\setuptools\command\easy_install.py", line 434, in easy_install
self.local_index
File "D:\data_aba\python files\python_portable_2761\App\lib\site-packages\setuptools\package_index.py", line 475, in fetch_distribution
return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'
有什么方法可以从zip文件的内容中安装pyreadline,或者至少要安装pip以便我可以用它来搜索pyreadline?
编辑1 ---
我去了https://pypi.org/simple/pip/,并下载了pip-18.0.tar.gz。有什么办法可以从该zip文件中手动安装它?但是话又说回来,如果可能的话,我想应该可以直接安装pyreadline吗?我该怎么做呢?