代码之家  ›  专栏  ›  技术社区  ›  user13267

在Python上安装pyRealLo线

  •  2
  • user13267  · 技术社区  · 6 年前

    我最近获得了便携式Python 2.7.61. here

    我需要安装Pyreadline到这个

    我从 https://pypi.org/project/pyreadline/#files

    这个zip文件足以让pyraadline安装在可移植python中吗?我以前没有使用Python的经验,但我读过其他关于试图安装模块到便携式Python的文章,所以我猜想应该是可能的。

    我试着用 easy_setup 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文件的内容安装pyradline,或者至少安装pip以便我可以使用它搜索pyradline?

    编辑1---

    我去了 https://pypi.org/simple/pip/ 并下载 pip-18.0.tar.gz 是的。有什么方法可以从这个zip文件中手动安装它吗?但如果可能的话,我想应该可以直接安装pyreadline?我该怎么做?

    0 回复  |  直到 6 年前