Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. *** error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
  2.  
  3. $ which python
  4. /cygdrive/c/Python27/python
  5.  
  6. $ pip install
  7. Downloading/unpacking django from https://pypi.python.org/packages/any/D/Dj....
  8. ctl^c
  9.  
  10. virtualenv --version
  11. 1.11.4
  12.  
  13. $ virtualenv testenv
  14. New python executable in testenvScriptspython.exe
  15. Installing setuptools, pip...done.
  16.  
  17. $ source testenv/Scripts/activate
  18.  
  19. (testenv)$ which python
  20. /cygdrive/c/proj/testenv/Scripts/python
  21.  
  22. (testenv)$ which pip
  23. /cygdrive/c/proj/testenv/Scripts/pip
  24.  
  25. (testenv)$ pip --version
  26. pip 1.5.4 from C:projtestenvlibsite-packages (python 2.7)
  27.  
  28. (testenv)$ pip install django
  29. Cannot fetch index base URL https://pypi.python.org/simple/
  30.  
  31. (testenv)$ pip install django
  32.  
  33. res=getaddrinfo(host, port, 0, SOCK_STREAM)
  34. res
  35. >>> [(2, 1, 0, '', ('103.245.222.184', 443))]
  36. af, socktype, proto, canonname, sa = res[0]
  37.  
  38. sock = socket(af, socktype, proto)
  39. sock
  40. >>> <socket._socketobject object at 0x020505E0>
  41.  
  42. sock.connect(sa)
  43. *** error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement