You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I need easy_install to install a package on python2.7. I'm using mac10.6, my version of python is the framework 2.7
this is what I get when I try :
python ez_setup.py
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz
Traceback (most recent call last):
File "ez_setup.py", line 370, in <module>
sys.exit(main())
File "ez_setup.py", line 366, in main
downloader_factory=options.downloader_factory)
File "ez_setup.py", line 278, in download_setuptools
downloader(url, saveto)
File "ez_setup.py", line 185, in download_file_curl
subprocess.check_call(cmd)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['curl', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz', '--silent', '--output', '/Users/cblin/Downloads/setuptools-1.1.6.tar.gz']' returned non-zero exit status 7
Theoretically, that will output an error message indicating the source of the error.
Bypass use of curl by passing --insecure to ez_setup.py. I don't recommend this technique because it does open the possibility of malicious manipulation of the tool, but if you're willing to accept the risk, then it will use the internal downloaders which are less secure but as a result, less likely to fail.
If you do go with (1), please post your findings here for our consideration and for others to compare. If the curl error message indicates something wrong with the use of curl, then please open another ticket.
Original comment bycablin (Bitbucket: cablin, GitHub: cablin):
Thank you for your answer.
I tried option 1 and get "curl : couldn't connect to host"
It appeared that curl is blocked in my lab. I used the 2nd option and it was successful.
Thanks a lot
Originally reported by: Anonymous
Hi,
I need easy_install to install a package on python2.7. I'm using mac10.6, my version of python is the framework 2.7
this is what I get when I try :
python ez_setup.py
Thank you for your help
The text was updated successfully, but these errors were encountered: