Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)

后端 未结 30 2686
谎友^
谎友^ 2020-11-21 07:34

I\'ve installed Python 3.5 and while running

pip install mysql-python

it gives me the following error

error: Microsoft Vi         


        
30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-21 07:53

    Binary install it the simple way!

    I can't believe no one has suggested this already - use the binary-only option for pip. For example, for mysqlclient:

    pip install --only-binary :all: mysqlclient
    

    Many packages don't create a build for every single release which forces your pip to build from source. If you're happy to use the latest pre-compiled binary version, use --only-binary :all: to allow pip to use an older binary version.

提交回复
热议问题