Pip-script.py not present

Dear community

As you may remember, I was successfully able to install invest on my virtual machine. Now I have no more admin rights, but I suppose the code still should work.
I got now an error: pip-script.py’ is not present.

(base) C:\Users\f80809100>conda config --set ssl_verify false

(base) C:\Users\f80809100>conda activate env-invest

(env-invest) C:\Users\f80809100>py --version
Python 3.12.4

(env-invest) C:\Users\f80809100>py -m pip --version
pip 24.0 from C:\Users\f80809100\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip (python 3.12)

(env-invest) C:\Users\f80809100>pip install gdal==3.3.0
Script file ‘C:\Users\f80809100\AppData\Local\miniconda3\envs\env-invest\Scripts\pip-script.py’ is not present.

(env-invest) C:\Users\f80809100>gdalinfo --version
GDAL 3.5.3, released 2022/10/21

(env-invest) C:\Users\f80809100>
(env-invest) C:\Users\f80809100>py -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in c:\users\f80809100\appdata\local\programs\python\python312\lib\site-packages (24.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)’))’: /simple/pip/

Many thanks
Sibylle

Hi Sibylle,
Maybe you can try the conda way of re-installing pip:

conda install --force-reinstall pip
1 Like

Many thanks @sesame

I was able to install python InVEST without any admin rights on my virtual computer.
(env-invest) C:\Users\f80809100>invest list
Available models:
annual_water_yield (hwy, awy) Annual Water Yield
carbon Carbon Storage and Sequestration
coastal_blue_carbon (cbc) Coastal Blue Carbon
coastal_blue_carbon_preprocessor (cbc_pre) Coastal Blue Carbon Preprocessor
coastal_vulnerability (cv) Coastal Vulnerability

Here the code
conda config --set ssl_verify false
conda activate env-invest
conda install --force-reinstall pip
py --version
py -m pip --version
pip install gdal==3.3.0
gdalinfo --version
py -m pip install --upgrade pip setuptools wheel
pip install natcap.invest

QUESTION 1
(env-invest) C:\Users\f80809100>pip install gdal==3.3.0
Collecting gdal==3.3.0
Using cached GDAL-3.3.0.tar.gz (743 kB)
Preparing metadata (setup.py) … done
Building wheels for collected packages: gdal
Building wheel for gdal (setup.py) … error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [115 lines of output]

However, GDAL is there
(env-invest) C:\Users\f80809100>gdalinfo --version
GDAL 3.9.2, released 2024/08/13

QUESTION 2
Is it true that I do not need the m pip install line, still ssl error?

(env-invest) C:\Users\f80809100>py -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in c:\users\f80809100\appdata\local\programs\python\python312\lib\site-packages (24.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)’))’: /simple/pip/

add on for question 1
I realised now, that InVEST will not work, because I did not successfully installed the right GDAL version, right?
Or do you know that in the meantime InVEST is working with the newest GDAL version?

Many many thanks for the support.
Sibylle

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.