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

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
({{קישור אנגלית לתצוגת קריאה}})
מ (fix: use {{he}} for link to hebrew page instead of {{en}} (דרך WP:JWB))
 
(7 גרסאות ביניים של 3 משתמשים אינן מוצגות)
שורה 1: שורה 1:
<div lang="en" dir="ltr" class="mw-content-ltr">
+
{{he|התקנת תעודה ב-pip}}
<div lang="he" dir="rtl">
+
{{Navigation|Security certificate}}
לעברית [[התקנת תעודה ב-pip|לחצו כאן]]
+
In window, If you have the security certificate installation software installed, you can run this command:
</div>
 
  
{{קישור אנגלית לתצוגת קריאה}}
+
pip config set global.cert "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"
  
<small>
+
In linux, If you installed the certificate according to the instructions [[Installation of certificate in Linux operating system| here]]], you can run this command:
''[[NetFriends|Home page]]'' > ''[[Security certificate]]'' > ''Installation of certificate in pip''
 
</small>
 
  
Download the Security certificate from here http://netfree.link/netfree-ca.crt and save it on the computer.
+
pip config set global.cert '''/usr/lib/ssl/certs/ca-certificates.crt'''
  
  
Now create a text file named pip.ini (in Linux pip.conf) in the folder named pip in this path: 
+
=== Another method===
  
'''''<span dir="ltr">C:\Users\ <users folder> \AppData\Roaming\pip</span>'''''
+
Create or edit this file:
  
(If the folder does not exist, create it)
+
%AppData%\pip\pip.ini
  
  
Write in the pip.ini file this content:
+
Add the following lines:
  
 +
[global]
 +
cert = C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt
  
  [global] <br/> cert = C:\netfree-ca.crt
+
And in linux according to the above address.
  
Instead of the file path (C:/netfree-ca.crt) you should write the path where you saved the Security certificate.
 
  
----
+
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]].
  
  
Alternatively you can cancel the need for a certificate on the source sites of pip by adding the following lines to the above file:
+
In other cases, the certificate must be downloaded to the computer [http://wiki.netfree.link/images/6/61/Netfree-ca-bundle-curl.zip from here], extract, and run the command with the path change depending on where you saved the file on your computer.
  
  
  [global]
+
===One-time run===
  trusted-host = pypi.python.org
+
 
    pypi.org
+
To run any command only one-time run with these certificates without changes to the computer, you can add this parameter to the command:
    files.pythonhosted.org
+
--cert %programdata%\NetFree\CA\netfree-ca-bundle-curl.crt
 +
 
 +
And in linux:
 +
 
 +
--cert /usr/lib/ssl/certs/ca-certificates.crt
 +
 
  
 
==External links==
 
==External links==
 +
 +
[https://stackoverflow.com/questions/25981703 More options and discussion in stackoverflow.com]
 +
 
[https://pip.pypa.io/en/stable/ The pip documentation site]
 
[https://pip.pypa.io/en/stable/ The pip documentation site]

גרסה אחרונה מ־04:10, 17 באוגוסט 2023

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

To switch from edit view to read view

To search in the Wiki

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


External links

More options and discussion in stackoverflow.com

The pip documentation site