[root@host105 tmp]# pip install -U Trac DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6 /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning. SNIMissingWarning /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Collecting Trac Downloading Trac-1.2-py2-none-any.whl (3.8MB) 100% |████████████████████████████████| 3.8MB 1.2kB/s Collecting setuptools>=0.6 (from Trac) Downloading setuptools-30.2.0-py2.py3-none-any.whl (472kB) 100% |████████████████████████████████| 481kB 3.5kB/s Requirement already up-to-date: Genshi>=0.6 in /usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg (from Trac) Installing collected packages: setuptools, Trac Found existing installation: setuptools 21.2.0 Uninstalling setuptools-21.2.0: Successfully uninstalled setuptools-21.2.0 Found existing installation: Trac 1.0.13 Uninstalling Trac-1.0.13: Successfully uninstalled Trac-1.0.13 Successfully installed Trac-1.2 setuptools-30.2.0 Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 233, in main return command.main(cmd_args) File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 252, in main pip_version_check(session) File "/usr/lib/python2.6/site-packages/pip/utils/outdated.py", line 102, in pip_version_check installed_version = get_installed_version("pip") File "/usr/lib/python2.6/site-packages/pip/utils/__init__.py", line 838, in get_installed_version working_set = pkg_resources.WorkingSet() File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 644, in __init__ self.add_entry(entry) File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 700, in add_entry for dist in find_distributions(entry, True): File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1949, in find_eggs_in_zip if metadata.has_metadata('PKG-INFO'): File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1463, in has_metadata return self.egg_info and self._has(self._fn(self.egg_info, name)) File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1823, in _has return zip_path in self.zipinfo or zip_path in self._index() File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1703, in zipinfo return self._zip_manifests.load(self.loader.archive) File "/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1643, in load mtime = os.stat(path).st_mtime OSError: [Errno 2] 没有那个文件或目录: '/usr/lib/python2.6/site-packages/setuptools-21.2.0-py2.6.egg'
There was an error in the installation process. May I have completed the upgrade? 在 2016年12月5日星期一 UTC+8下午10:57:02,RjOllos写道: > > > > On Monday, December 5, 2016 at 12:38:24 AM UTC-8, Mingxing Tian wrote: >> >> [root@host105 ~]# easy_install --upgrade Trac >> Searching for Trac >> Reading https://pypi.python.org/simple/Trac/ >> Download error on https://pypi.python.org/simple/Trac/: [Errno 101] >> Network is unreachable -- Some packages may not be found! >> Couldn't retrieve index page for 'Trac' >> Scanning index of all packages (this may take a while) >> Reading https://pypi.python.org/simple/ >> Best match: Trac 1.0.13 >> Processing Trac-1.0.13-py2.6.egg >> Trac 1.0.13 is already the active version in easy-install.pth >> Installing trac-admin script to /usr/bin >> Installing tracd script to /usr/bin >> >> Using /usr/lib/python2.6/site-packages/Trac-1.0.13-py2.6.egg >> Processing dependencies for Trac >> Finished processing dependencies for Trac >> You have new mail in /var/spool/mail/root >> >> >> The upgrade process seems to have nothing to do? >> > > It looks like you have a network problem. Maybe you are behind a proxy or > corporate firewall? > > In general, I suggest using pip rather than easy_install. > https://pip.pypa.io/en/stable/installing/ > $ pip install -U Trac > > Another option, you could download and install from source: > > $ wget > https://pypi.python.org/packages/de/38/7d6604d907bf37b18a0501ff00d02c9fb60182c74313e23508824620e4f3/Trac-1.2.tar.gz#md5=ff3a7d78099a269ae2035a6cf8adccbb > $ tar xzvf Trac-1.2.tar.gz > $ cd Trac 1.2 > $ python setup.py install > # or > $ pip install . > > - Ryan > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
