Forums

pip not working

i am trying to install gmpy using pip

 pip install gmpy

but i get this error

 $ pip install gmpy
Collecting gmpy
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000426BFD0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/gmpy/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000426BD30>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/gmpy/
  Using cached gmpy-1.17.zip
Building wheels for collected packages: gmpy
  Running setup.py bdist_wheel for gmpy ... error
  Complete output from command C:\ProgramData\Anaconda2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\local\\temp\\pip-build-8vmbf0\\gmpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\user\appdata\local\temp\tmpizsmutpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_ext
  building 'gmpy' extension
  error: [Error 2] The system cannot find the file specified

  ----------------------------------------
  Failed building wheel for gmpy
  Running setup.py clean for gmpy
Failed to build gmpy
Installing collected packages: gmpy
  Running setup.py install for gmpy ... error
    Complete output from command C:\ProgramData\Anaconda2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\local\\temp\\pip-build-8vmbf0\\gmpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\user\appdata\local\temp\pip-rhnzvu-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'gmpy' extension
    error: [Error 2] The system cannot find the file specified

    ----------------------------------------
Command "C:\ProgramData\Anaconda2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\local\\temp\\pip-build-8vmbf0\\gmpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\user\appdata\local\temp\pip-rhnzvu-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\user\appdata\local\temp\pip-build-8vmbf0\gmpy\

i have tried this this

how to solve it ??

im on Python 2.7.13 |Anaconda 4.3.1 (64-bit)| (default, Dec 19 2016, 13:29:36) [MSC v.1500 64 bit (AMD64)] on win32

Hi there, that doesn't look like it's running on PythonAnywhere?