Repository files navigation python env how-to short version
Now coming to the steps, first navigate to a folder where you want to create the venv.
create a folder “venv” inside Downloads
navigate to "venv" folder and type at cmd: "python -m venv venv_name"
Simply give your venv any name. Once you do this, you will see a folder is created in that path.
navigate to Scripts folder inside your venv created and type the command “activate” to go inside your venv.
You will observe that the name of your venv now shows in the beginning of the path inside command prompt.
Now you have successfully created a virtual environment in python.
You can go ahead and install any library in here using pip command.
Now coming to the steps, first navigate to a folder where you want to create the venv.
create a folder “venv” inside Downloads
navigate to "venv" folder and type at cmd: "python -m venv venv_name"
Simply give your venv any name. Once you do this, you will see a folder is created in that path.
navigate to Scripts folder inside your venv created and type the command “activate” to go inside your venv.
You will observe that the name of your venv now shows in the beginning of the path inside command prompt.
Now you have successfully created a virtual environment in python.
You can go ahead and install any library in here using pip command.
To exit the virtual environment simply type the following command: deactivate
Step #1 on intial setup
Install the Required CA Certificates:
Obtain the root and intermediate certificates from your IT or network team. Import these certificates into your system’s and browser's certificate stores.
Set the Environment Variable:
Set the NODE_EXTRA_CA_CERTS environment variable to point to the CA certificate file. This can be done in the terminal using:
export NODE_EXTRA_CA_CERTS="/path/to/your/ca-certificate.pem"
Disable Certificate Verification (Not recommended for production):
If this is a development workaround, you might disable strict SSL certificate verification by setting:
export NODE_TLS_REJECT_UNAUTHORIZED='0'
Note: Disabling SSL verification is not a secure practice and should only be used temporarily for troubleshooting.
Use a Custom HTTPS Agent:
For more control within the application, consider using a custom HTTPS agent that points to your CA certificates.
Make sure to follow your organization's security policies while making these changes, and consult with your IT or network team as needed.
Make: pip freeze > requirements.txt
Use: pip install -r requirements.txt
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.