简体   繁体   中英

How do I install alipy?

I'm on a jupyter lab instance and I'd like to install the alipy library.

I opened a terminal window and ran pip install alipy and got this error

    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.

I'm guessing you have 2 versions of python (python 2 and python 3) installed and want to download the python 3 version of the module

pip3 install alipy

You can run the code and it works for python 3.7, maybe its because you are using python 2?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM