如何安装alipy?

时间:2019-11-05 19:12:21

标签: python python-3.x pip

我在一个jupyter实验室实例上,我想安装alipy库。

我打开终端窗口并运行pip install alipy并收到此错误

    ERROR: Command errored out with exit status 1:
     command: /opt/conda/envs/python2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-DWPPLN/alipy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-DWPPLN/alipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /tmp/pip-install-DWPPLN/alipy/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-DWPPLN/alipy/setup.py", line 9, in <module>
        long_description=open('README.md', encoding='UTF-8').read(),
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2 个答案:

答案 0 :(得分:0)

我猜您已经安装了2个版本的python(python 2和python 3),并想下载该模块的python 3版本

Dim rng as Range Set rng = Sheets("TempTable").Cells.Find(What:="WIMT", LookIn:=xlValues, LookAt:=xlWhole) If Not rng Is Nothing Then ' the find is successful ... work with rng, with its .Row, etc. End If

答案 1 :(得分:0)

您可以运行代码,并且该代码适用于python 3.7,也许是因为您使用的是python 2?