0xfuturistic / Twitter-Giveaways-Bot

A bot that will constantly look for new giveaways and contests on Twitter; and enter to all of them! It will do whatever it's needed, either retweeting or liking something, or even following and DMing someone :D
MIT License
122 stars 41 forks source link

pip install python-twitter error #42

Closed JohannesMarkos closed 2 months ago

JohannesMarkos commented 2 months ago

Having a error while trying to install pip install python-twitter It says: "ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path:"

"WARNING: There was an error checking the latest version of pip."

How can I solve this problem?

JohannesMarkos commented 2 months ago

This chatgpt chat helped me "1. Download the Bundle:

A reliable source for certificate bundles is Mozilla's Certificate Authority list: https://curl.se/docs/caextract.html

Download the file named "cacert.pem" from this page.
  1. Place the Bundle:

    Choose a convenient location to store the downloaded cacert.pem file. Your user directory (e.g., C:\Users\) is a good option.

  2. Set the Environment Variable:

    We need to tell the program (likely pip) where to find the downloaded certificate bundle. This is done through an environment variable named CURL_CA_BUNDLE.

Here's how to set the variable depending on your operating system:

Windows:

Search for "Environment Variables" and open the "Edit the system environment variables" option.

Under "System variables," find the variable named CURL_CA_BUNDLE (if it doesn't exist, create a new one).

Set the value of the variable to the complete path of your downloaded cacert.pem file (e.g., C:\Users\<username>\cacert.pem).

Restart your terminal or command prompt for the changes to take effect."