Closed dedean closed 1 month ago
how to setup
Any particular reason why you are using such an old version of jsonargparse? The latest versions don't even have a setup.py
file. The repo now follows the new PEP 621 standard, using a pyproject.toml
file.
It is not clear exactly what you want to do. For using the package the recommended way is to pip install ...
. Setting up for development is explained in CONTRIBUTING.rst.
Sorry to bother you, but due to conditions, I can only download the offline package for installation. What command should I execute to install if I download the latest package
发自我的iPhone
------------------ Original ------------------ From: Mauricio Villegas @.> Date: Fri,May 17,2024 9:38 PM To: omni-us/jsonargparse @.> Cc: dedean @.>, Author @.> Subject: Re: [omni-us/jsonargparse] the issue about setup.py (Issue #500)
From source the package can be installed like
pip install .
If you want optional dependencies, then you can do for example
pip install ".[signatures]"
Do you mean that I enter the downloaded jsonargprase offline package and directly execute the pip list? (My server cannot connect to the network)
发自我的iPhone
------------------ Original ------------------ From: Mauricio Villegas @.> Date: Fri,May 17,2024 11:31 PM To: omni-us/jsonargparse @.> Cc: dedean @.>, Author @.> Subject: Re: [omni-us/jsonargparse] the issue about setup.py (Issue #500)
From source the package can be installed like
pip install .
If you want optional dependencies, then you can do for example
pip install ".[signatures]"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>
For example, for the latest version you can (linux/mac):
virtualenv -p python3 venv
source venv/bin/activate
wget https://files.pythonhosted.org/packages/19/ee/84ddf56631ae11c7751a1e5ab543803c6c8f7857d41f91ee01b1b886f0eb/jsonargparse-4.28.0.tar.gz
tar xzf jsonargparse-4.28.0.tar.gz
cd jsonargparse-4.28.0
pip install .
But, if pip does not get access to the internet, the install will fail trying to fetch dependencies. The only required dependency is pyyaml, so you would have to download and manually install that one beforehand. If you want more optional dependencies, then you would need to install each of them manually.
ok i will try this method tomorrow .Thank you
发自我的iPhone
------------------ Original ------------------ From: Mauricio Villegas @.> Date: Fri,May 17,2024 11:51 PM To: omni-us/jsonargparse @.> Cc: dedean @.>, Author @.> Subject: Re: [omni-us/jsonargparse] the issue about setup.py (Issue #500)
Hopefully this helped! Closing.