我試圖在virtualenv中運行pip install libarchive
,但它失敗:在Debian上的virtualenv中共享庫; PIP安裝失敗
(.env) $ pip install libarchive
Downloading/unpacking libarchive
Downloading libarchive-0.4.3.tar.gz
Running setup.py egg_info for package libarchive
Requirement already satisfied (use --upgrade to upgrade): nose in /var/tmp/.env/lib/python2.6/site-packages (from libarchive)
Installing collected packages: libarchive
Running setup.py install for libarchive
Verifying that the library is accessible.
Library can not be loaded: libarchive.so: cannot open shared object file: No such file or directory
error: None
Complete output from command /var/tmp/.env/bin/python -c "import setuptools;
__file__='/var/tmp/.env/build/libarchive/setup.py'; execfile('/var/tmp/.env/build/libarchive/setup.py')" install --single-version-externally-managed --record /tmp/pip-1hz9vY-record/install-record.txt --install-headers /var/tmp/.env/include/site/python2.6:
running install
Verifying that the library is accessible.
Library can not be loaded: libarchive.so: cannot open shared object file: No such file or directory
error: None
----------------------------------------
Command /var/tmp/.env/bin/python -c "import setuptools; __file__='/var/tmp/.env/build/libarchive/setup.py'; execfile('/var/tmp/.env/build/libarchive/setup.py')" install --single-version-externally-managed --record /tmp/pip-1hz9vY-record/install-record.txt --install-headers /var/tmp/.env/include/site/python2.6 failed with error code 1
Storing complete log in /home/me/.pip/pip.log
的錯誤信息是不是非常有幫助,但我想這個問題是二進制包libarchive13
(或者,適用於Debian擠壓,libarchive1
)沒有安裝。
我沒有這個系統的安裝權限(更少root),並且需要能夠部署到用戶處於類似困境的系統。有沒有辦法做到這一點?
(該libarchive documentation表明,有與.so
符號鏈接Ubuntu的問題,但這種情況正在發生Debian的 - 反正,我無法找到有關這一爭端的任何公共bug報告有關,但切 - 安裝軟件包後,我可能需要額外的解決方法。)
先粗在https://github.com/tripleee/virtualdeb;拉請求比歡迎。 – tripleee