【问题标题】:unable to install requests in jython无法在 jython 中安装请求
【发布时间】:2021-05-17 03:03:59
【问题描述】:

我已经通过 pip 安装了

java -jar jython-standalone-2.7.2.jar -m ensurepip

命令,但是当我尝试通过 jython 安装请求时,它显示以下错误

java -jar jython-standalone-2.7.2.jar -m pip install requests
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.io.StreamIO (file:/home/bugcracker/burp_dev/jython-standalone-2.7.2.jar) to field java.io.FilterOutputStream.out
WARNING: Please consider reporting this to the maintainers of org.python.core.io.StreamIO
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
DEPRECATION: A future version of pip will drop support for Python 2.7.
Collecting requests
  ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests


【问题讨论】:

    标签: java python jython


    【解决方案1】:

    official repo下载requests-2.25.1.tar.gz,然后在终端进入那个目录, 并输入以下命令:

    java -jar <path-to-jython-standalone-2.7.2.jar> setup.py install
    

    这将在 jython 中安装请求。

    【讨论】:

      猜你喜欢
      • 2017-10-13
      • 1970-01-01
      • 2013-04-07
      • 1970-01-01
      • 2016-09-09
      • 1970-01-01
      • 1970-01-01
      • 2018-03-10
      • 1970-01-01
      相关资源
      最近更新 更多