2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

babun環境でpipでうまくインストール出来ない時の対処法

Last updated at Posted at 2015-12-27

個人的メモです。なぜ治るのかよくわからないです。教えて下さい。

環境

  • OS: Windows8.1pro
  • babun: babun version 1.2.0
  • pip: pip 7.1.2 from /usr/lib/python2.7/site-packages (python 2.7)

エラー内容

  • platformioをpip使ってインストールしようとしたらエラー出た
  • コピるの忘れていたので抜粋して
$ pip install platformio
....
child_info_fork::abort: address space needed by 'cygbz2-1.dll' (0x410000) is already occupied
Error [Errno 11] Resource temporarily unavailable while executing command python setup.py egg_info Exception
....
OSError: [Errno 11] Resource temporarily unavailable

対処方法

  • よくわからないけどネットで調べた結果rebaseall -vををやるといいと書いてあったので試したらうまく行った。
  • ただしbabun環境ではうまくいかないらしく、一旦終了して直接ashを立ち上げる必要がある。
  • まず、使いたくもないcmdを立ち上げ
(環境に合わせてbabunのインストール先を設定してください)
C:\>\Users\hoge\.babun\cygwin\bin\ash
$/bin/rebaseall -v

でずらずらーとなんか出てきて終わったら、cmdを閉じてbabunを立ち上げてください。
すると、

$ pip install platformio
Collecting platformio
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached platformio-2.6.3.tar.gz
Collecting bottle (from platformio)
  Using cached bottle-0.12.9.tar.gz
Collecting click<6,>=3.2 (from platformio)
  Downloading click-5.1-py2.py3-none-any.whl (65kB)
    100% |████████████████████████████████| 65kB 1.5MB/s
Collecting lockfile>=0.9.1 (from platformio)
  Downloading lockfile-0.12.2-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python2.7/site-packages/pyserial-2.7-py2.7.egg (from platformio)
Collecting requests>=2.4.0 (from platformio)
  Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
    100% |████████████████████████████████| 503kB 702kB/s
Building wheels for collected packages: platformio, bottle
  Running setup.py bdist_wheel for platformio
  Complete output from command /usr/bin/python2.7 -c "import setuptools;__file__='/tmp/pip-build-y8Et2d/platformio/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpIvIooPpip-wheel-:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for platformio
  Running setup.py bdist_wheel for bottle
  Complete output from command /usr/bin/python2.7 -c "import setuptools;__file__='/tmp/pip-build-y8Et2d/bottle/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpuu5NSIpip-wheel-:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for bottle
Failed to build platformio bottle
Installing collected packages: bottle, click, lockfile, requests, platformio
  Running setup.py install for bottle
  Running setup.py install for platformio
Successfully installed bottle-0.12.9 click-5.1 lockfile-0.12.2 platformio-2.6.3 requests-2.9.1

よしよし

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?