Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows安装依赖时报错 #337

Open
BruceLee569 opened this issue Nov 25, 2019 · 3 comments
Open

windows安装依赖时报错 #337

BruceLee569 opened this issue Nov 25, 2019 · 3 comments

Comments

@BruceLee569
Copy link

Win10系统安装rcssmin这个包时,显示错误如下:

Building wheels for collected packages: rcssmin
  Building wheel for rcssmin (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\辰冢\\AppData\\Local\\Temp\\pip-install-u5q3mgmp\\rcssmin\\setup.py'"'"'; __file__='"'"'C:\\Users\\辰冢\\AppData\\Local\\Temp\\pip-install-u5q3mgmp\\rcssmin\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\ 辰冢\AppData\Local\Temp\pip-wheel-u3hssz74' --python-tag cp37
       cwd: C:\Users\辰冢\AppData\Local\Temp\pip-install-u5q3mgmp\rcssmin\
  Complete output (9 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  copying .\rcssmin.py -> build\lib.win-amd64-3.7
  running build_ext
  building '_rcssmin' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
  ----------------------------------------
  ERROR: Failed building wheel for rcssmin
  Running setup.py clean for rcssmin
Failed to build rcssmin
ERROR: spyder 3.3.6 requires pyqt5<5.13; python_version >= "3", which is not installed.
ERROR: spyder 3.3.6 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.

网上查了下,可以通过以下命令单独安装rcssmin,成功:

pip install rcssmin --install-option="--without-c-extensions"
@CAU-LiuZiyu
Copy link

@liangliangyy 你好!win10环境下安装依赖报错:

ERROR: Command errored out with exit status 1: command: 'd:\Anaconda3\envs\Python_3.8\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-n9m8nkw8\\django-mdeditor\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-n9m8nkw8\\django-mdeditor\\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\Administrator\AppData\Local\Temp\pip-install-n9m8nkw8\django-mdeditor\pip-egg-info' cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-n9m8nkw8\django-mdeditor\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Administrator\AppData\Local\Temp\pip-install-n9m8nkw8\django-mdeditor\setup.py", line 5, in <module> long_description = readme.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 167: illegal multibyte sequence ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

不太明白这个错误是什么意思,该怎么解决呢?

@lemonYZ
Copy link

lemonYZ commented Apr 5, 2020 via email

@amethystia
Copy link

我用pip安装compressor 也是提示这个错误,发现Microsoft Visual C++ Build Tools 2015这个的高版本是安装了的,卸载重装也不行。然后按照网上给的方法安装rcssmin 添加个参数"--without-c-extensions"也不行,把高版本的卸载后奇迹般的装好了 #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants