Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noob Question, How to Install? #13

Closed
aaronstar opened this issue Aug 16, 2015 · 8 comments
Closed

Noob Question, How to Install? #13

aaronstar opened this issue Aug 16, 2015 · 8 comments

Comments

@aaronstar
Copy link

Hi there, I have very little experience with python or anything similar.
I have a .gz file from https://pypi.python.org/pypi/pyproj?, which I extracted using 7zip then opened cmd (Windows) with Administrator privileges and entered

cd C:\Users\username\Desktop\pyproj-1.9.4
setup.py install

I don't get it, in step by step instructions how do I install this to a functioning state?

@KAMI911
Copy link

KAMI911 commented Aug 16, 2015

Linux:

wget https://github.com/jswhit/pyproj/archive/v1.9.4rel.zip
unzip v1.9.4rel.zip
cd pyproj-v1.9.4rel
python setup.py build
sudo python setup.py install

Windows

Download:

http://www.lfd.uci.edu/~gohlke/pythonlibs/
http://www.lfd.uci.edu/%7Egohlke/pythonlibs/#numpy

One of these files:

pyproj-1.9.4-cp27-none-win_amd64.whl for 64 bit version

http://www.lfd.uci.edu/%7Egohlke/pythonlibs/3i673h27/pyproj-1.9.4-cp27-none-win_amd64.whl

pyproj‑1.9.4‑cp27‑none‑win32.whl for 32 bit version

http://www.lfd.uci.edu/~gohlke/pythonlibs/3i673h27/pyproj-1.9.4-cp27-none-win32.whl

And install it:
C:\Python27\Scripts\pip.exe install "pyproj-1.9.4-cp27-none-win_amd64.whl"

Üdvözlettel / Best Regards:

Kálmán (KAMI) Szalai

2015-08-16 9:46 GMT+02:00 aaronstar [email protected]:

Hi there, I have very little experience with python or anything similar.
I have a .gz file from https://pypi.python.org/pypi/pyproj?, have tried
using

cd C:\Users\username\Desktop\pyproj-1.9.4
setup.py install

I don't get it, in step by step instructions how do I install this to a
functioning state?


Reply to this email directly or view it on GitHub
#13.

@ghost
Copy link

ghost commented Feb 2, 2016

I can't do it.
C:\Utility\Python27\Scripts\pip.exe install "pyproj-1.9.5-cp27-none-win_amd64.whl"
Give me:
Fatal error in launcher: Unable to create process using '"'

Also, when I installed od Windows 10/64
PIL-1.1.7.win32-py2.7.exe
it stopped with:
"Setup has stopped working because of a problem."

Sorry. Now is working.
"python-2.7.10.amd64.msi" from
https://www.python.org/downloads/release/python-2710/
'pil' is already there.

Next, I installed "pyproj-1.9.5-cp27-none-win_amd64.whl"

C:\Python27\Scripts\pip.exe install "pyproj-1.9.5-cp27-none-win_amd64.whl"

@micahcochran
Copy link
Collaborator

pyproj version 1.9.5 has issues when compiling the internal version of PROJ on some Windows machines. Did you get the installation of pyproj to work? If it did not work, could you copy and paste the output of pip install?

@ghost
Copy link

ghost commented Feb 3, 2016

I had to remove the 64 (Problem with pypro for Win64.) and re-install version 32.
Problem with pypro for Win64.

So, we need:
python-2.7.10.msi
PIL-1.1.7.win32-py2.7.exe
pyproj-1.9.5-cp27-none-win32.whl

C:\Python27\Scripts\pip.exe install "pyproj-1.9.5-cp27-none-win32.whl"

Now everything works correctly even JOSM plug-in Scanaerial.

@micahcochran
Copy link
Collaborator

The wheel binary files of pyproj on the website http://www.lfd.uci.edu/~gohlke/pythonlibs/ are not supported by the project. I'm glad you had better experiences with the 32-bit version of the Windows binary wheels.

The project only supports installing from setup.py, which requires a C compiler even if PROJ4 is installed on your system.

@malikabendechache
Copy link

I have a problem installing pyproj in my mac computer, I am using spyder in anaconda.
I used pip installation and this is what I get as an error:

!pip install pyproj
Collecting pyproj
Using cached https://files.pythonhosted.org/packages/29/72/5c1888c4948a0c7b736d10e0f0f69966e7c0874a660222ed0a2c2c6daa9f/pyproj-1.9.5.1.tar.gz
Complete output from command python setup.py egg_info:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
using bundled proj4..
Traceback (most recent call last):
File "/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/anaconda3/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/anaconda3/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/anaconda3/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/br/2nxyz8j521jgjqmzszzjlrwh0000gn/T/pip-install-tns_1rrq/pyproj/setup.py", line 72, in <module>
    objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
  File "/anaconda3/lib/python3.6/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/br/2nxyz8j521jgjqmzszzjlrwh0000gn/T/pip-install-tns_1rrq/pyproj/

I will really appreciate your help
Thanks

heitorPB added a commit to heitorPB/pyproj that referenced this issue Oct 21, 2018
Several issues report problems with using `pip install pyproj`. A workaround is using the latest version from Github.

Some issues with pip problems: pyproj4#141 pyproj4#136 pyproj4#133 pyproj4#132 pyproj4#130 pyproj4#59 pyproj4#25 pyproj4#13 pyproj4#9.
@heitorPB heitorPB mentioned this issue Dec 29, 2018
@snowman2
Copy link
Member

@malikabendechache, have you tried: conda install -c conda-forge pyproj?

@snowman2
Copy link
Member

Related to #216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants