解决安装pyspider的若干问题

github.com/pyenv-win/p…

  • 下载https://github.com/pyenv-win/pyenv-win/archive/master.zip
  • 解压到用户目录下:%USERPROFILE%/.pyenv/pyenv-win
  • 添加到环境变量Path:%USERPROFILE%.pyenv\pyenv-win\bin;%USERPROFILE%.pyenv\pyenv-win\shims
  • 检查:pyenv --version

安装python3.6.8

  • 安装python3.6.8:pyenv install 3.6.8
  • 本地激活:pyenv local 3.6.8(全局激活:pyenv global 3.6.8)
  • 检查python版本:python -V

安装pycurl

windows

pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
pip install pycurl
复制代码

mac

pip uninstall pycurl
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PYCURL_SSL_LIBRARY=openssl
pip install pycurl
复制代码
我来评几句
登录后评论

已发表评论数()

相关站点

+订阅
热门文章