Мне нужно установить openpyxl в автономном режиме в python2 .6 на Solaris 5.10 без подключения к inte rnet. Я знаю, python2 .6 больше не поддерживается, но я не могу обновить python до 3 на данный момент (я попытался обновить RHEL, и многие вещи не сработали)
Я скачал vd42-openpyxl-2.6.2.tar.gz и попытался установить, используя команду ниже
python setup.py install --user
Но он пытается найти файл et-xmlfile из http://pypi.python.org/simple/et_xmlfile/
Но, поскольку нет соединения с Inte rnet, он не работает.
Reading http://pypi.python.org/simple/et_xmlfile/
Download error: [Errno 145] Connection timed out -- Some packages may not be found!
Reading http://pypi.python.org/simple/et-xmlfile/
Download error: [Errno 145] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'et_xmlfile' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 145] Connection timed out -- Some packages may not be found!
No local packages or download links found for et-xmlfile
Я скачал файл et_xmlfile-1.0.0.tar.gz и поместил его в каталог vd42-openpyxl-2.6.2.
Где я должен измените скрипт для чтения из файла локально.
Также можно установить openpyxl таким образом на Python2 .6
Вывод установки
host::/path/vd42-openpyxl-2.6.2$ python setup.py install --user
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
running install
Checking .pth file support in /export/home/oracle/.local/lib/python2.6/site-packages/
/usr/bin/python -E -c pass
TEST PASSED: /export/home/oracle/.local/lib/python2.6/site-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing requirements to vd42_openpyxl.egg-info/requires.txt
writing vd42_openpyxl.egg-info/PKG-INFO
writing top-level names to vd42_openpyxl.egg-info/top_level.txt
writing dependency_links to vd42_openpyxl.egg-info/dependency_links.txt
reading manifest file 'vd42_openpyxl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'openpyxl/sample'
no previously-included directories found matching 'openpyxl/benchmarks'
no previously-included directories found matching 'openpyxl/develop'
no previously-included directories found matching 'scratchpad'
no previously-included directories found matching 'doc'
writing manifest file 'vd42_openpyxl.egg-info/SOURCES.txt'
installing library code to build/bdist.solaris-2.10-sun4v/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/openpyxl
copying openpyxl/conftest.py -> build/lib/openpyxl
copying openpyxl/_constants.py -> build/lib/openpyxl
copying openpyxl/__init__.py -> build/lib/openpyxl
creating build/lib/openpyxl/formatting
copying openpyxl/formatting/rule.py -> build/lib/openpyxl/formatting
.
.
<many more lines>
.
.
.
copying build/lib/openpyxl/_constants.py -> build/bdist.solaris-2.10-sun4v/egg/openpyxl
byte-compiling build/bdist.solaris-2.10-sun4v/egg/openpyxl/conftest.py to conftest.pyc
.
.
<many more lines>
.
.
byte-compiling build/bdist.solaris-2.10-sun4v/egg/openpyxl/cell/__init__.py to __init__.pyc
byte-compiling build/bdist.solaris-2.10-sun4v/egg/openpyxl/cell/text.py to text.pyc
byte-compiling build/bdist.solaris-2.10-sun4v/egg/openpyxl/cell/cell.py to cell.pyc
byte-compiling build/bdist.solaris-2.10-sun4v/egg/openpyxl/_constants.py to _constants.pyc
creating build/bdist.solaris-2.10-sun4v/egg/EGG-INFO
copying vd42_openpyxl.egg-info/PKG-INFO -> build/bdist.solaris-2.10-sun4v/egg/EGG-INFO
copying vd42_openpyxl.egg-info/SOURCES.txt -> build/bdist.solaris-2.10-sun4v/egg/EGG-INFO
copying vd42_openpyxl.egg-info/dependency_links.txt -> build/bdist.solaris-2.10-sun4v/egg/EGG-INFO
copying vd42_openpyxl.egg-info/requires.txt -> build/bdist.solaris-2.10-sun4v/egg/EGG-INFO
copying vd42_openpyxl.egg-info/top_level.txt -> build/bdist.solaris-2.10-sun4v/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/vd42_openpyxl-2.6.2-py2.6.egg' and adding 'build/bdist.solaris-2.10-sun4v/egg' to it
removing 'build/bdist.solaris-2.10-sun4v/egg' (and everything under it)
Processing vd42_openpyxl-2.6.2-py2.6.egg
Copying vd42_openpyxl-2.6.2-py2.6.egg to /export/home/oracle/.local/lib/python2.6/site-packages
Adding vd42-openpyxl 2.6.2 to easy-install.pth file
Installed /export/home/oracle/.local/lib/python2.6/site-packages/vd42_openpyxl-2.6.2-py2.6.egg
Processing dependencies for vd42-openpyxl==2.6.2
Searching for et-xmlfile
Reading http://pypi.python.org/simple/et_xmlfile/
Download error: [Errno 145] Connection timed out -- Some packages may not be found!
Reading http://pypi.python.org/simple/et-xmlfile/
Download error: [Errno 145] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'et_xmlfile' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 145] Connection timed out -- Some packages may not be found!
No local packages or download links found for et-xmlfile
Best match: None
Traceback (most recent call last):
File "setup.py", line 80, in <module>
'Programming Language :: Python :: 3.7',
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/python2.6/vendor-packages/setuptools/command/install.py", line 76, in run
self.do_egg_install()
File "/usr/lib/python2.6/vendor-packages/setuptools/command/install.py", line 104, in do_egg_install
cmd.run()
File "/usr/lib/python2.6/vendor-packages/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.6/vendor-packages/setuptools/command/easy_install.py", line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/lib/python2.6/vendor-packages/setuptools/command/easy_install.py", line 478, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python2.6/vendor-packages/setuptools/command/easy_install.py", line 519, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.6/vendor-packages/pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.6/vendor-packages/pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.6/vendor-packages/pkg_resources.py", line 811, in obtain
return installer(requirement)
File "/usr/lib/python2.6/vendor-packages/setuptools/command/easy_install.py", line 434, in easy_install
self.local_index
File "/usr/lib/python2.6/vendor-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'
host::/path/vd42-openpyxl-2.6.2$