Giter VIP home page Giter VIP logo

Comments (8)

micahcochran avatar micahcochran commented on May 23, 2024

I do not think I have enough information to help you.

I assume based your issue that "Visual C 2.7" means that you have installed Microsoft Visual C++ Compiler for Python 2.7.

You might try installing pyproj using pip, C:\...> pip install pyproj

Out of curiosity, what version of setuptools are you running? C:\...> pip list | find "setuptools", which you could try upgrading.

from pyproj.

shane17 avatar shane17 commented on May 23, 2024

Yes, i meant Microsoft Visual C++ Compiler for Python 2.7.
If you need any more kind of information, I will be happy to prove it.

Trying to install pyproj using pip gives the exact same error unfortunately :(

I am running setuptools 25.1.6,

But trying to check the version of setuptools using C:...> pip list | find "setuptools" gives the following result:

$ pip list | find "setuptools"
find: ‘setuptools’: No such file or directory
Traceback (most recent call last):
File "c:\python27\lib\logging__init__.py", line 882, in emit
stream.write(fs % msg)
File "c:\python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 141, in write
self.write_and_convert(text)
File "c:\python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 169, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "c:\python27\lib\site-packages\pip_vendor\colorama\ansitowin32.py", line 175, in write_plain_text
self.wrapped.flush()
IOError: [Errno 22] Invalid argument
Logged from file list.py, line 202

from pyproj.

micahcochran avatar micahcochran commented on May 23, 2024

Another shot in the dark. What version of pip are you running? C:\...> pip --version

from pyproj.

shane17 avatar shane17 commented on May 23, 2024

$ python --version
Python 2.7.12
$ pip --version
pip 8.1.2 from /usr/local/lib/python2.7/site-packages (python 2.7)

from pyproj.

Br3ttl3y avatar Br3ttl3y commented on May 23, 2024

I had this exact same problem. Did you ever find an answer?

$ pip install -U pyproj
Collecting pyproj
  Using cached pyproj-1.9.5.1.tar.gz
    Complete output from command python setup.py egg_info:
    nad2bin.c
    nad2bin.c(129) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(130) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(137) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(138) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(352) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    nad2bin.c(353) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    pj_malloc.c
    using bundled proj4..
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\brett\appdata\local\temp\pip-build-xysdqt\pyproj\setup.py", line 74, in <module>
        cc.link_executable(objects, execname, extra_postargs = [ '/MANIFEST' ] if os.name == 'nt' else  None)
      File "c:\python27\lib\distutils\ccompiler.py", line 700, in link_executable
        debug, extra_preargs, extra_postargs, None, target_lang)
      File "c:\python27\lib\distutils\msvc9compiler.py", line 669, in link
        raise LinkError(msg)
    distutils.errors.LinkError: command 'C:\\Users\\brett\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\WinSDK\\Bin\\mt.exe' failed with exit status -1073741819

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\brett\appdata\local\temp\pip-build-xysdqt\pyproj\

I have the same versions as mentioned above.

I was not able to get the command: pip list | find "setuptools" to work, but I was able to get pip list to work and it showed setuptools (20.10.1)

I reinstalled setuptools and now it shows setuptools (26.0.0) still same error.

from pyproj.

micahcochran avatar micahcochran commented on May 23, 2024

What shell are you using under Windows with a $ prompt? Is it bash?

from pyproj.

Br3ttl3y avatar Br3ttl3y commented on May 23, 2024

I was able to get it working. The problem that I faced is that I was following a stupid tutorial. The tutorial told me to remove the slash from the end of the Python PATH Environment variable. Once I added it back on, everything was gravy.

from pyproj.

snowman2 avatar snowman2 commented on May 23, 2024

Refer to #216

from pyproj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.