Java 无法在jython中安装请求

Java 无法在jython中安装请求,java,python,jython,Java,Python,Jython,我已经通过安装pip java-jarjython-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 or

我已经通过安装pip

java-jarjython-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



从官方repo()下载requests-2.25.1.tar.gz,然后转到终端中的目录, 并键入以下命令

java-jar/Users/nixuser/Downloads/jython-standalone-2.7.2.jar setup.py安装 这将在jython中安装请求