Installation of certificate in pip: הבדלים בין גרסאות בדף

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
שורה 1: שורה 1:
{{עמוד בעברית|התקנת תעודה ב-pip}}  
+
{{En|התקנת תעודה ב-pip}}  
 
 
<div lang="en" dir="ltr">
 
 
 
{{קישור אנגלית לתצוגת קריאה}}
 
 
 
 
{{Navigation|Security certificate}}
 
{{Navigation|Security certificate}}
  
Download the Security certificate from here http://netfree.link/netfree-ca.crt and save it on the computer.
+
Run the following command :
 
 
 
 
Now create a text file named pip.ini (in Linux pip.conf) in the folder named pip in this path: 
 
 
 
'''''<span dir="ltr">C:\Users\ <users folder> \AppData\Roaming\pip</span>'''''
 
 
 
(If the folder does not exist, create it)
 
 
 
 
 
Write in the pip.ini file this content:
 
 
 
 
 
  [global] <br/> cert = C:\netfree-ca.crt
 
 
 
Instead of the file path (C:/netfree-ca.crt) you should write the path where you saved the Security certificate.
 
 
 
----
 
 
 
  
Alternatively you can cancel the need for a certificate on the source sites of pip by adding the following lines to the above file:
+
pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"
  
 +
Note: This command should only be run if you are on Windows and have already installed [[Standard certificate installer|Security Certificate Software]]. In a different case, the certificate must be downloaded to the computer [http://wiki.netfree.link/images/a/ac/Curl-ca-bundle.zip from here], extracted and run the command with the path change according to the location where you saved the certificate on the computer.
  
  [global]
+
More options: Adding a parameter that points to the certificate location in each command execution, or adding the certificate location in the software settings file, or canceling the security check, see [https://stackoverflow.com/questions/25981703 here].
  trusted-host = pypi.python.org
 
    pypi.org
 
    files.pythonhosted.org
 
  
 
==External links==
 
==External links==
 
[https://pip.pypa.io/en/stable/ The pip documentation site]
 
[https://pip.pypa.io/en/stable/ The pip documentation site]

גרסה מ־21:52, 29 באוקטובר 2019

לעברית לחצו כאן

To switch from edit view to read view

To search in the Wiki

Home page > Security certificate > Installation of certificate in pip ‎‎


Run the following command :

pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"

Note: This command should only be run if you are on Windows and have already installed Security Certificate Software. In a different case, the certificate must be downloaded to the computer from here, extracted and run the command with the path change according to the location where you saved the certificate on the computer.

More options: Adding a parameter that points to the certificate location in each command execution, or adding the certificate location in the software settings file, or canceling the security check, see here.

External links

The pip documentation site