简体   繁体   English

python 2.7.13的“ pip install pymysql”语法错误

[英]“pip install pymysql” syntax error for python 2.7.13

I'm lost trying to install this package. 我迷失了尝试安装此软件包的方法。 It looks like I have it, but I can't install? 看起来好像有,但是我无法安装?

Error 错误 错误

pip location 点位置

EDIT: I've tried running in cmd but I get another error cmd error 编辑:我尝试在cmd中运行,但出现另一个错误cmd错误

cmd error cmd错误

You first have to go into the folder where pip.exe is present. 您首先必须进入存在pip.exe的文件夹。 In windows, it is in Scripts folder: 在Windows中,它位于Scripts文件夹中:

cd C:\Python27\Scripts
pip install <package>

Edit 1: You have to set the http and https proxys as: 编辑1:您必须将httphttps代理设置为:

set HTTP_PROXY=http://<<your_proxy>>:<<your_port>>
set HTTPS_PROXY=https://<<your_proxy>>:<<your_port>>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM