2016-12-14 55 views
0

我在森蚺(蟒3.4)工作,我使用Linux民18 我試圖讓模塊jpypip install -i https://pypi.anaconda.org/pypi/simple jpy,但我得到了以下錯誤:FileNotFoundError同時通過PIP安裝模塊日元在暢達

Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "/tmp/pip-build-p2voq_f8/jpy/setup.py", line 100, in <module> 
     with open('README.rst') as file: 
    FileNotFoundError: [Errno 2] No such file or directory: 'README.rst' 

而且我知道問題是什麼,但不知道如何解決它。我試圖用pip install -U setuptools pip更新我的setuptools,但主要問題仍然存在。而谷歌這對我沒有幫助。

任何想法?謝謝。

回答

0

從GitHub抓起:

首先下載庫

Install a JDK 8, preferrably the Oracle distribution. Set JDK_HOME or JPY_JDK_HOME to point to your JDK installation and run the build script:

$ export JAVA_HOME=<your-jdk-dir> 
$ python get-pip.py 
$ python setup.py --maven bdist_wheel 

On success, the wheel is found in the dist directory.

To deploy the jpy.jar (if you don't know why you need this step, this is not for you):

$ mvn clean deploy -DskipTests=true

https://github.com/bcdev/jpy

+0

這改變不了什麼有關FileNotFound錯誤。 – Mara

+0

你在用什麼操作系統? –

+0

Linux Mint 18.我將它添加到我的問題中。 – Mara