Installation of certificate in pip: הבדלים בין גרסאות בדף
מ (fix: use {{he}} for link to hebrew page instead of {{en}} (דרך WP:JWB)) |
|||
(גרסת ביניים אחת של משתמש אחר אחד אינה מוצגת) | |||
שורה 1: | שורה 1: | ||
− | {{ | + | {{he|התקנת תעודה ב-pip}} |
{{Navigation|Security certificate}} | {{Navigation|Security certificate}} | ||
In window, If you have the security certificate installation software installed, you can run this command: | In window, If you have the security certificate installation software installed, you can run this command: | ||
שורה 5: | שורה 5: | ||
pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt" | pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt" | ||
− | In linux, If you installed the certificate according to the instructions [[Installation of certificate in | + | In linux, If you installed the certificate according to the instructions [[Installation of certificate in Linux operating system| here]]], you can run this command: |
pip config set global.cert '''/usr/lib/ssl/certs/ca-certificates.crt''' | pip config set global.cert '''/usr/lib/ssl/certs/ca-certificates.crt''' | ||
שורה 25: | שורה 25: | ||
− | NOTE: The above is correct for Windows if you have installed [[Standard certificate installer| Security Certificate Software]] or Linux systems and have been installed [[Installation of certificate in | + | NOTE: The above is correct for Windows if you have installed [[Standard certificate installer| Security Certificate Software]] or Linux systems and have been installed [[Installation of certificate in Linux operating system| Certificate as instructed here]]. |
גרסה אחרונה מ־04:10, 17 באוגוסט 2023
לעברית לחצו כאן
To switch from edit view to read view
Home page > Security certificate > Installation of certificate in pip
In window, If you have the security certificate installation software installed, you can run this command:
pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"
In linux, If you installed the certificate according to the instructions here], you can run this command:
pip config set global.cert /usr/lib/ssl/certs/ca-certificates.crt
Another method
Create or edit this file:
%AppData%\pip\pip.ini
Add the following lines:
[global] cert = C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt
And in linux according to the above address.
NOTE: The above is correct for Windows if you have installed Security Certificate Software or Linux systems and have been installed Certificate as instructed here.
In other cases, the certificate must be downloaded to the computer from here, extract, and run the command with the path change depending on where you saved the file on your computer.
One-time run
To run any command only one-time run with these certificates without changes to the computer, you can add this parameter to the command:
--cert %programdata%\NetFree\CA\netfree-ca-bundle-curl.crt
And in linux:
--cert /usr/lib/ssl/certs/ca-certificates.crt