PyCharm无法安装kiwisolver

小孩儿

我正在尝试安装kiwisolver,以便稍后导入到python文件中。每当我尝试安装它时,它都将不起作用。这是终端的摘录,其中包含整个错误消息:

pip install kiwisolver

使用缓存的kiwisolver-1.2.0.tar.gz收集kiwisolver(52 kB)

    ERROR: Command errored out with exit status 1:
     command: 'c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\scripts\python.exe' -c 'import sys, setuptools
, tokenize; sys.argv[0] = '"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-install-7g7nerff\\kiwisolver\\setup.py'"'
"'; __file__='"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-install-7g7nerff\\kiwisolver\\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 'C:\Users\krzys\AppData\Local\Temp\pip-pip-egg-info-lzzrvcrw'

         cwd: C:\Users\krzys\AppData\Local\Temp\pip-install-7g7nerff\kiwisolver\
    Complete output (44 lines):
    WARNING: The wheel package is not available.
      ERROR: Command errored out with exit status 1:
       command: 'c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\scripts\python.exe' -u -c 'import sys, setup
tools, tokenize; sys.argv[0] = '"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-wheel-68n7nybw\\cppy\\setup.py'"'"';
 __file__='"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-wheel-68n7nybw\\cppy\\setup.py'"'"';f=getattr(tokenize, '
"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __fi
le__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\krzys\AppData\Local\Temp\pip-wheel-wh_c02y4'
           cwd: C:\Users\krzys\AppData\Local\Temp\pip-wheel-68n7nybw\cppy\
      Complete output (6 lines):
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
    
      error: invalid command 'bdist_wheel'
      ----------------------------------------
      ERROR: Failed building wheel for cppy
    ERROR: Failed to build one or more wheels
    Traceback (most recent call last):
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\installer.py", line
126, in fetch_build_egg
        subprocess.check_call(cmd)
      File "C:\Users\krzys\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['c:\\users\\krzys\\pycharmprojects\\possiblyworkingcv2\\venv\\scripts\\
python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\krzys\\AppData\\Loc
al\\Temp\\tmp95axqdwj', '--quiet', 'cppy>=1.1.0']' returned non-zero exit status 1.
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\krzys\AppData\Local\Temp\pip-install-7g7nerff\kiwisolver\setup.py", line 59, in <module>
        setup(
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\__init__.py", line 1
52, in setup
        _install_setup_requires(attrs)
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\__init__.py", line 1
47, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\dist.py", line 673,
in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\pkg_resources\__init__.py", lin
e 764, in resolve
        dist = best[req.key] = env.best_match(
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\pkg_resources\__init__.py", lin
e 1049, in best_match
        return self.obtain(req, installer)
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\pkg_resources\__init__.py", lin
e 1061, in obtain
        return installer(requirement)
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\dist.py", line 732,
in fetch_build_egg
        return fetch_build_egg(self, req)
      File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\installer.py", line
128, in fetch_build_egg
        raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command '['c:\\users\\krzys\\pycharmprojects\\possiblyworkingcv2\\venv\\scripts
\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\krzys\\AppData\\L
ocal\\Temp\\tmp95axqdwj', '--quiet', 'cppy>=1.1.0']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我需要怎么做才能安装kiwisolver?

我正在将PyCharm Community Edition 2020.2.3与Python 3.9(venv)解释器一起使用。

CForce99

不知道Python 3.9中是否有kiwisolver的轮子,请在此处检查并下载并安装正确的轮子(如果有)。如果没有,请下载3.8 Python版本。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章