Coder Social home page Coder Social logo

Comments (22)

georgeouzou avatar georgeouzou commented on May 23, 2024 1

@luky1984 Do you know if you have the required c compiler installed? If not try installing VC++ for python 2.7 and follow the manual procedure i posted above.

from pyproj.

micahcochran avatar micahcochran commented on May 23, 2024

If you have pip installed you can install it from the command line by doing this. Pip will download and install pyproj for you.
C:\..> pip install pyproj

Alternatively, download the zip. Uncompress the archive. Then follow the README instruction that

C:\..> python setup.py build
C:\..> python setup.py install

If the installation complains about not having "vcvarsal.bat". Install Visual C++ for Python 2.7.

from pyproj.

FarihaZg avatar FarihaZg commented on May 23, 2024

Thank you for your response, I tried the second solution but I had another error.

image

from pyproj.

georgeouzou avatar georgeouzou commented on May 23, 2024

Pyproj contains some additional c files that need to be compiled. Download this https://www.microsoft.com/en-us/download/details.aspx?id=44266. And try building and installing again

from pyproj.

FarihaZg avatar FarihaZg commented on May 23, 2024

I downloaded the VCForPython27 and I when I tried building it gives me this error. What should I do please?

image

from pyproj.

georgeouzou avatar georgeouzou commented on May 23, 2024

The files are compiled but cannot be linked. Can you try upgrading setuptools and doing this again? Maybe it has something to do with the linking. https://pypi.python.org/pypi/setuptools.

from pyproj.

FarihaZg avatar FarihaZg commented on May 23, 2024

I installed setuotools-20.2.2.zip. What should I type in the command line to upgrade it (ez_setup.py)?
And should I add the environment variable of python?

from pyproj.

georgeouzou avatar georgeouzou commented on May 23, 2024

You run C:/python27/python.exe ez_setup.py from the command line. Also its nice to add python to your environment path so you can quickly python any_python_script.py from anywhere.

from pyproj.

FarihaZg avatar FarihaZg commented on May 23, 2024

Thank you I upgraded setuptools and when I typed again: C:/Python27/python.exe setup.py build it gives me: mt.exe stopped working.

image

from pyproj.

georgeouzou avatar georgeouzou commented on May 23, 2024

Can you printscreen another image with the errors on the commandline?

from pyproj.

FarihaZg avatar FarihaZg commented on May 23, 2024

image

from pyproj.

georgeouzou avatar georgeouzou commented on May 23, 2024

I tried it on my windows 8 and had the same results. But when i added python to the PATH, all the files compiled and linked nicely. So try this:

  • Hold Win/Start and press Pause or go to System.
  • Click Advanced System Settings.
  • Click Environment Variables.
  • Append C:\Python27; to the Path variable.
  • Restart Command Prompt.
  • Type python setup.py build and wait a little.
  • If all is done, then python setup.py install

from pyproj.

FarihaZg avatar FarihaZg commented on May 23, 2024

Thank you very much George, it worked :)

from pyproj.

georgeouzou avatar georgeouzou commented on May 23, 2024

:) Nice!

from pyproj.

geographika avatar geographika commented on May 23, 2024

I downloaded the wheel file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyproj - pyproj-1.9.5-cp27-none-win_amd64.whl

The following was failing:

pip install pyproj-1.9.5-cp27-none-win_amd64.whl

With:

ValueError: ('Expected version spec in', 'C:\\Installation\\Python\\pyproj-1.9.5-cp27-none-win_amd64.whl', 'at', ':\\Installation\\Python\\pyproj-1.9.5-cp27-none-win_amd64.whl')

However once I updated pip then it succeeded.

pip install pip -U

The original pip version was 1.2.1 the updated one was 8.1.0

from pyproj.

luky1984 avatar luky1984 commented on May 23, 2024

Hi, i have Windows8 and neither one method works for me. Neither WHL works neither the official way.

Neither pip install. If i run pip install it does very long and fast output (how could i page the output with key? may be there is one red line, but i cant catch it) ending with #cleaning lines but pyproj is not installed. (btw i noticed if i run pip install nonexisting.whl then the output is also same long as if i enter existing file).

I have python path in env variable both in PATH and Path. I also tried run the CMD as administrator. (But i think it is not needed for some reason, because some installation of other python library worked via pip install even if the CMD was not launched in Administrator mode i think)

I have no clue what could be problem.

If i run the officall installation python setup.py build and install it should automatically add folder to my c:\Python27\Lib folder? How can i check what is wrong?

The official way builds probably folders /lib/pyproj in the installation folder, but i tried to copy this /lib/pyproj to C:\python27\Lib also to C:\python27\Lib\site-packages but it doesnt work, because in lib/pyproj/init.py is something like "from pyproj import _proj" and it throws error cannot import _proj.

I also tried take the whole folder upon which i am running the "python setup.py build" and "python setup.py install" commands and copy it to C:\Python27\Lib after all is done but it doesnt work too.

Thx

from pyproj.

luky1984 avatar luky1984 commented on May 23, 2024

I will try, thanks George.

Edit: you are super genius! Now it worked ! 👍 Many thanks

Do you think it was also reason why didnt worked WHL or some other libraries via pip install? Or it was only related to installation of this source code?

from pyproj.

micahcochran avatar micahcochran commented on May 23, 2024

pyproj doesn't have a wheel (WHL) release as you can see on pypi.

Appveyor could be made to generate a Wheel on Windows. Binary wheels are a bit harder to configure than universal wheels (python source only).

Patches are welcome.

from pyproj.

johnmisquita avatar johnmisquita commented on May 23, 2024

what does build mean? how do i do it?

from pyproj.

johnmisquita avatar johnmisquita commented on May 23, 2024

All i did was install this https://www.microsoft.com/en-us/download/details.aspx?id=44266. and then use pip install and it worked , thanks

from pyproj.

fenchu avatar fenchu commented on May 23, 2024

Please create a windows64 binary wheel for python3. I do not want to have 8GB+ of visual studio bloat around just for compiling this.

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.