首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在阻止防火墙后的windows中手动安装xlwing?

在阻止防火墙后的windows中手动安装xlwing?
EN

Stack Overflow用户
提问于 2019-06-19 18:50:37
回答 1查看 554关注 0票数 0

我正在Windows上使用Microsoft的Visual Studio代码。

Office防火墙阻止了https://pypi.org/的下载网站https://files.pythonhosted.org,因此

(env) C:\py\ms>python -m pip install C:\whl\xlwings-0.15.8-py36_0.tar.bz2

不起作用,我正在寻找一种解决办法来安装xlwings

我从https://anaconda.org/conda-forge/xlwings/files下载了xlwings-0.15.8-py36_0.tar.bz2,但是

(env) C:\py\ms>python -m pip install C:\whl\xlwings-0.15.8-py36_0.tar.bz2

也不起作用。

有没有办法通过...tar.bz2文件或任何其他替代文件安装xlwings

更新:以下是不包含setup.py...tar.bz2文件中的内容

代码语言:javascript
复制
C:\Python\whl\xlwings-0.15.8-py36_0.tar>tree /f /a
Folder PATH listing for volume Windows 7_x64
Volume serial number is EA08-A1F9
C:.
|   xlwings32-0.15.8.dll
|   xlwings64-0.15.8.dll
|
+---info
|   |   about.json
|   |   files
|   |   git
|   |   hash_input.json
|   |   index.json
|   |   LICENSE.txt
|   |   paths.json
|   |
|   +---recipe
|   |       conda_build_config.yaml
|   |       meta.yaml
|   |       meta.yaml.template
|   |       recipe_log.txt
|   |
|   \---test
|           run_test.bat
|           run_test.py
|
+---Lib
|   \---site-packages
|       +---xlwings
|       |   |   command_line.py
|       |   |   constants.py
|       |   |   expansion.py
|       |   |   mac_dict.py
|       |   |   main.py
|       |   |   quickstart.xlsm
|       |   |   quickstart_standalone_mac.xlsm
|       |   |   quickstart_standalone_win.xlsm
|       |   |   server.py
|       |   |   udfs.py
|       |   |   utils.py
|       |   |   xlwings.applescript
|       |   |   xlwings.bas
|       |   |   _xlmac.py
|       |   |   _xlwindows.py
|       |   |   __init__.py
|       |   |
|       |   +---addin
|       |   |       xlwings.xlam
|       |   |
|       |   +---conversion
|       |   |   |   framework.py
|       |   |   |   numpy_conv.py
|       |   |   |   pandas_conv.py
|       |   |   |   standard.py
|       |   |   |   __init__.py
|       |   |   |
|       |   |   \---__pycache__
|       |   |           framework.cpython-36.pyc
|       |   |           numpy_conv.cpython-36.pyc
|       |   |           pandas_conv.cpython-36.pyc
|       |   |           standard.cpython-36.pyc
|       |   |           __init__.cpython-36.pyc
|       |   |
|       |   +---ext
|       |   |   |   sql.py
|       |   |   |   __init__.py
|       |   |   |
|       |   |   \---__pycache__
|       |   |           sql.cpython-36.pyc
|       |   |           __init__.cpython-36.pyc
|       |   |
|       |   +---rest
|       |   |   |   api.py
|       |   |   |   serializers.py
|       |   |   |   __init__.py
|       |   |   |
|       |   |   \---__pycache__
|       |   |           api.cpython-36.pyc
|       |   |           serializers.cpython-36.pyc
|       |   |           __init__.cpython-36.pyc
|       |   |
|       |   +---tests
|       |   |   |   cell_errors.xlsx
|       |   |   |   common.py
|       |   |   |   macro book.xlsm
|       |   |   |   sample_picture.png
|       |   |   |   test book.xlsx
|       |   |   |   test_active.py
|       |   |   |   test_app.py
|       |   |   |   test_book.py
|       |   |   |   test_conversion.py
|       |   |   |   test_names.py
|       |   |   |   test_range.py
|       |   |   |   test_shape.py
|       |   |   |   test_sheet.py
|       |   |   |   __init__.py
|       |   |   |
|       |   |   +---restapi
|       |   |   |   |   test_restapi.py
|       |   |   |   |   __init__.py
|       |   |   |   |
|       |   |   |   \---__pycache__
|       |   |   |           test_restapi.cpython-36.pyc
|       |   |   |           __init__.cpython-36.pyc
|       |   |   |
|       |   |   \---__pycache__
|       |   |           common.cpython-36.pyc
|       |   |           test_active.cpython-36.pyc
|       |   |           test_app.cpython-36.pyc
|       |   |           test_book.cpython-36.pyc
|       |   |           test_conversion.cpython-36.pyc
|       |   |           test_names.cpython-36.pyc
|       |   |           test_range.cpython-36.pyc
|       |   |           test_shape.cpython-36.pyc
|       |   |           test_sheet.cpython-36.pyc
|       |   |           __init__.cpython-36.pyc
|       |   |
|       |   \---__pycache__
|       |           command_line.cpython-36.pyc
|       |           constants.cpython-36.pyc
|       |           expansion.cpython-36.pyc
|       |           mac_dict.cpython-36.pyc
|       |           main.cpython-36.pyc
|       |           server.cpython-36.pyc
|       |           udfs.cpython-36.pyc
|       |           utils.cpython-36.pyc
|       |           _xlmac.cpython-36.pyc
|       |           _xlwindows.cpython-36.pyc
|       |           __init__.cpython-36.pyc
|       |
|       \---xlwings-0.15.8-py3.6.egg-info
|               dependency_links.txt
|               entry_points.txt
|               PKG-INFO
|               requires.txt
|               SOURCES.txt
|               top_level.txt
|
\---Scripts
        xlwings-script.py
        xlwings.exe
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-06-20 04:48:40

问题是xlwing不提供wheel file which you can install from a file in pip。您应该能够从PyPI --也就是AK.a.提取.tar.gz源代码发行版。sdist --然后手动安装它(xlwing可能正在使用setuptools,所以应该是/path/to/python setup.py install)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56665937

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档