Can anyone please help me understand pip configurations for a venv I’ve created? This is intertwined with an issue about my certificate bundle for installing packages. I have a .pem file I’d like to use but not the one pip is referencing below.
(.venv) PS C:Userse402746DocumentsMy-Python-ProjectsDevelopment.venvScripts> py -m pip install requests
ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:CertsPM_CHAIN_PEM.pem
Basically, my current path for my certificate is invalid and I’ve been trying to set a new one in my pip.ini but pip is not looking at the configuration file I want.
I’m trying to point pip to C:/Users/<user>/AppData/pip/pip.ini
However using pip config -v list it’s looking at these locations:
(.venv) PS C:Users<user>DocumentsMy-Python-ProjectsDevelopment.venvScripts> pip config -v list
For variant 'global', will try loading 'C:ProgramDatapippip.ini'
For variant 'user', will try loading 'C:Users<user>pippip.ini'
For variant 'user', will try loading 'C:Users<user>AppDataRoamingpippip.ini'
For variant 'site', will try loading 'C:Users<user>DocumentsMy-Python-ProjectsDevelopment.venvpip.ini'
I don’t know how to make pip look at a different path for the pip.ini?
Does my idea of the certification path in the pip.ini even make sense?
submitted by /u/spawn-kill
[link] [comments]
r/learnpython Can anyone please help me understand pip configurations for a venv I’ve created? This is intertwined with an issue about my certificate bundle for installing packages. I have a .pem file I’d like to use but not the one pip is referencing below. (.venv) PS C:Userse402746DocumentsMy-Python-ProjectsDevelopment.venvScripts> py -m pip install requests ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:CertsPM_CHAIN_PEM.pem Basically, my current path for my certificate is invalid and I’ve been trying to set a new one in my pip.ini but pip is not looking at the configuration file I want. I’m trying to point pip to C:/Users/<user>/AppData/pip/pip.ini However using pip config -v list it’s looking at these locations: (.venv) PS C:Users<user>DocumentsMy-Python-ProjectsDevelopment.venvScripts> pip config -v list For variant ‘global’, will try loading ‘C:ProgramDatapippip.ini’ For variant ‘user’, will try loading ‘C:Users<user>pippip.ini’ For variant ‘user’, will try loading ‘C:Users<user>AppDataRoamingpippip.ini’ For variant ‘site’, will try loading ‘C:Users<user>DocumentsMy-Python-ProjectsDevelopment.venvpip.ini’ I don’t know how to make pip look at a different path for the pip.ini? Does my idea of the certification path in the pip.ini even make sense? submitted by /u/spawn-kill [link] [comments]
Can anyone please help me understand pip configurations for a venv I’ve created? This is intertwined with an issue about my certificate bundle for installing packages. I have a .pem file I’d like to use but not the one pip is referencing below.
(.venv) PS C:Userse402746DocumentsMy-Python-ProjectsDevelopment.venvScripts> py -m pip install requests
ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:CertsPM_CHAIN_PEM.pem
Basically, my current path for my certificate is invalid and I’ve been trying to set a new one in my pip.ini but pip is not looking at the configuration file I want.
I’m trying to point pip to C:/Users/<user>/AppData/pip/pip.ini
However using pip config -v list it’s looking at these locations:
(.venv) PS C:Users<user>DocumentsMy-Python-ProjectsDevelopment.venvScripts> pip config -v list
For variant 'global', will try loading 'C:ProgramDatapippip.ini'
For variant 'user', will try loading 'C:Users<user>pippip.ini'
For variant 'user', will try loading 'C:Users<user>AppDataRoamingpippip.ini'
For variant 'site', will try loading 'C:Users<user>DocumentsMy-Python-ProjectsDevelopment.venvpip.ini'
I don’t know how to make pip look at a different path for the pip.ini?
Does my idea of the certification path in the pip.ini even make sense?
submitted by /u/spawn-kill
[link] [comments]