如何在虚拟机上安装JellyFish?

时间:2020-10-31 17:55:32

标签: python-3.x

我目前正在使用python编写程序,并想在另一台机器上对其进行测试。我已经创建了一个虚拟机,并尝试使用“ pip3 install jellyfish”安装水母,该水母在我的主机上工作得很好,但在我的VM上却没有。 它们都是python 3.8.6 64位。 我已经彻底安装了我需要的所有其他模块(约50个),但这个模块... 香港专业教育学院从2010年到2015-2019年安装了所有的Visual C ++红色,它仍然不起作用...我迷路了.....这是我使用PyCharm时出现的错误..... (我在命令提示符下也是如此)

Collecting jellyfish
  Using cached jellyfish-0.8.2.tar.gz (134 kB)
Using legacy 'setup.py install' for jellyfish, since package 'wheel' is not installed.
Installing collected packages: jellyfish
    Running setup.py install for jellyfish: started
    Running setup.py install for jellyfish: finished with status 'error'

DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\blaziken\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\blaziken\\AppData\\Local\\Temp\\pycharm-packaging\\jellyfish\\setup.py'"'"'; __file__='"'"'C:\\Users\\blaziken\\AppData\\Local\\Temp\\pycharm-packaging\\jellyfish\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\blaziken\AppData\Local\Temp\pip-record-a0jjxb9y\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\blaziken\AppData\Local\Programs\Python\Python38\Include\jellyfish'
         cwd: C:\Users\blaziken\AppData\Local\Temp\pycharm-packaging\jellyfish\
    Complete output (81 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\jellyfish
    copying jellyfish\porter.py -> build\lib.win-amd64-3.8\jellyfish
    copying jellyfish\test.py -> build\lib.win-amd64-3.8\jellyfish
    copying jellyfish\_jellyfish.py -> build\lib.win-amd64-3.8\jellyfish
    copying jellyfish\__init__.py -> build\lib.win-amd64-3.8\jellyfish
    warning: build_py: byte-compiling is disabled, skipping.
    
    running build_ext
    building 'jellyfish.cjellyfish' extension
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\blaziken\AppData\Local\Temp\pycharm-packaging\jellyfish\setup.py", line 143, in <module>
        run_setup(not IS_PYPY)
      File "C:\Users\blaziken\AppData\Local\Temp\pycharm-packaging\jellyfish\setup.py", line 114, in run_setup
        setup(
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\command\install.py", line 545, in run
        self.run_command('build')
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\blaziken\AppData\Local\Temp\pycharm-packaging\jellyfish\setup.py", line 33, in run
        build_ext.run(self)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 340, in run
        self.build_extensions()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "C:\Users\blaziken\AppData\Local\Temp\pycharm-packaging\jellyfish\setup.py", line 39, in build_extension
        build_ext.build_extension(self, ext)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 528, in build_extension
        objects = self.compiler.compile(sources,
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 327, in compile
        self.initialize()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 224, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\msvc.py", line 312, in msvc14_get_vc_env
        return _msvc14_get_vc_env(plat_spec)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\msvc.py", line 264, in _msvc14_get_vc_env
        vcvarsall, vcruntime = _msvc14_find_vcvarsall(plat_spec)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\msvc.py", line 219, in _msvc14_find_vcvarsall
        _, best_dir = _msvc14_find_vc2017()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\msvc.py", line 191, in _msvc14_find_vc2017
        path = subprocess.check_output([
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 411, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\run\__init__.py", line 145, in __new__
        process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\site-packages\run\__init__.py", line 121, in create_process
        shlex.split(command),
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 311, in split
        return list(lex)
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 300, in __next__
        token = self.get_token()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 109, in get_token
        raw = self.read_token()
      File "C:\Users\blaziken\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 140, in read_token
        nextchar = self.instream.read(1)
    AttributeError: 'list' object has no attribute 'read'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\blaziken\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\blaziken\\AppData\\Local\\Temp\\pycharm-packaging\\jellyfish\\setup.py'"'"'; __file__='"'"'C:\\Users\\blaziken\\AppData\\Local\\Temp\\pycharm-packaging\\jellyfish\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\blaziken\AppData\Local\Temp\pip-record-a0jjxb9y\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\blaziken\AppData\Local\Programs\Python\Python38\Include\jellyfish' Check the logs for full command output.

0 个答案:

没有答案