多版本python 报错处理

2016-01-28 09:36:49

   最近博主接触的几个库 均因python 版本问题报错  自己思考下 最终解决了问题 

设定一个符合的一个版本
You can use --python option to npm like so:

npm install --python=python2.7


or set it to be used always:

npm config set python python2.7


Npm will in turn pass this option to node-gyp when needed.
(note: I'm the one who opened an issue on Github to have this included in the docs, as there were so many questions about it ;-) )


至此python 的问题得到解决了  博主的工作也可以顺利的完成了

你打算打赏多少钱呢?

打赏
(微信扫一扫)