[转]Resolving Python error: Unable to find vcvarsall.bat

[转]Resolving Python error: Unable to find vcvarsall.bat

[转]Resolving Python error: Unable to find vcvarsall.bat

[转]Resolving Python error: Unable to find vcvarsall.bat

Resolving Python error: Unable to find vcvarsall.bat

While installing python package flask-user using pip I was getting the error Unable to find vcvarsall.bat

Resolution:

Download and install Microsoft Visual C++ Compiler for Python 2.7 from https://www.microsoft.com/en-in/download/details.aspx?id=44266
Go to C:\Python27\Lib\distutils and open the file msvc9compiler.py
Go to the def query_vcvarsall(version, arch="x86"):
Add following line of code below vcvarsall = find_vcvarsall(version)

vcvarsall = "C:\Users\NAME\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0" +"/vcvarsall.bat"

Go to command prompt and run pip install flask-user. This time it works fine

注意:vcvarsall = "C:\Users\NAME\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0" +"/vcvarsall.bat"

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2022-01-05
  • 2021-08-18
  • 2021-12-14
  • 2022-01-03
  • 2021-10-10
猜你喜欢
  • 2021-10-07
  • 2021-06-25
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案