環境はこちら
- Ubuntu 16.04
- Anaconda3をインストールしたあと
$ pip install -e .
Obtaining file:///home/ubuntu/workspace/my-module
Requirement already satisfied: numpy in /home/ubuntu/anaconda3/lib/python3.6/site-packages (from my_module==0.0.1) (1.14.3)
Requirement already satisfied: pandas in /home/ubuntu/anaconda3/lib/python3.6/site-packages (from my_module==0.0.1) (0.23.0)
Requirement already satisfied: scipy in /home/ubuntu/anaconda3/lib/python3.6/site-packages (from my_module==0.0.1) (1.1.0)
Collecting pyproj (from my_module==0.0.1)
Downloading https://files.pythonhosted.org/packages/29/72/5c1888c4948a0c7b736d10e0f0f69966e7c0874a660222ed0a2c2c6daa9f/pyproj-1.9.5.1.tar.gz (4.4MB)
100% |████████████████████████████████| 4.4MB 9.7MB/s
Complete output from command python setup.py egg_info:
using bundled proj4..
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/home/ubuntu/anaconda3/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/home/ubuntu/anaconda3/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/home/ubuntu/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 "/tmp/pip-install-l31v9gll/pyproj/setup.py", line 72, in <module>
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "/home/ubuntu/anaconda3/lib/python3.6/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/ubuntu/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 /tmp/pip-install-l31v9gll/pyproj/
つらい
自分でモジュール作成したけど、pyprojというものが入らずつらい
github.com
こちら参考にした。
$ sudo apt update
$ sudo apt install libffi-dev g++ libssl-dev
取り急ぎはおk。
が、もう一度pip install
を実行すると
$ pip install -e .
distributed 1.21.8 requires msgpack, which is not installed.
???
stackoverflow.com
ふむ?
$ pip install msgpack
これを実行したらエラーが消えた。