Comments (22)
@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.
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.
Thank you for your response, I tried the second solution but I had another error.
from pyproj.
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.
I downloaded the VCForPython27 and I when I tried building it gives me this error. What should I do please?
from pyproj.
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.
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.
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.
Thank you I upgraded setuptools and when I typed again: C:/Python27/python.exe setup.py build it gives me: mt.exe stopped working.
from pyproj.
Can you printscreen another image with the errors on the commandline?
from pyproj.
from pyproj.
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.
Thank you very much George, it worked :)
from pyproj.
:) Nice!
from pyproj.
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.
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.
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.
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.
what does build mean? how do i do it?
from pyproj.
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.
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.
Refer to #216
from pyproj.
Related Issues (20)
- error installl pyproj==3.2.1 on debian:12 HOT 3
- UserWarning: Valid PROJ data directory not found HOT 16
- What happened to the `pyproj/aoi.py` module in releases? HOT 1
- Deprecation warning when transforming a single point enclosed in numpy array HOT 1
- LibTiff Vulnerabilities and Dependencies HOT 4
- DOC: Converting from fiona CRS to pyproj.crs.CRS HOT 7
- Add JSON serializeability with PROJJSON? HOT 7
- to_CF for polar_stereographic, with latitude_true_scale, should include latitude_of_projection_origin HOT 2
- Reverse transformation does not produce initial coordinates
- DeprecationWarning: pkg_resources is deprecated as an API. HOT 1
- Support for deprecated and non-deprecated objects HOT 3
- Invert lat lon "Transformer" HOT 1
- Internal Proj Error: proj_create: unrecognized format / unknown name HOT 4
- Inverted x/y for transformation from WSG84 to LV95 (EPSG:2056) HOT 3
- muslinux wheel missing HOT 1
- test_azimuthal_equidistant fails with PROJ 9.4.0 HOT 1
- test failure in test_crs_cf.py HOT 2
- Add proj_query_geodetic_crs_from_datum HOT 2
- 3.6.1: pytest fails in `test/crs/test_crs_cf.py::test_azimuthal_equidistant` unit HOT 1
- A question about pyproj/_datadir.pyx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyproj.