SSL certificate error during “pip3 install joulescope”

I need the downsample logging capability

I can’t successfully get through the “install the dependencies” step documented in the readme file:

cd pyjoulescope_examples
pip3 install -r requirements.txt

Please look at this screenshot:

You'll note the unzipped folder was "joulescope_examples/...", and not "pyjoulescope_examples" as indicated in your readme file.

I had to move the "requirements.txt" file up to the joulescope_examples folder (it was one file back), and then I got all the failures indicated in the linked screenshot above.

Help, please?

Hi @audiobrian1 and welcome to the forum. Sorry to hear that the steps in the README aren’t working for you. You should not have to move around the files. Depending upon how you extract the zip file, you may have a folder “pyjoulescope_examples-master” which contains folders “bin” and “joulescope_examples”. You can keep the “requirements.txt” file in the original location alongside the

However, it looks like something is wrong with your python pip installation. First, lets make sure you have a good version of python:

python -VV
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]

You should have 3.6 or higher, but I recommend 3.7 or 3.8. You can download the latest version from Also make sure that you have the 64-bit version. pyjoulescope does not work with 32-bit Python or 32-bit Windows.

Assuming that works, let’s reinstall pyjoulescope:

pip3 uninstall joulescope
pip3 install -U joulescope matplotlib

You should see joulescope 0.8.14 installed.

Does this work? If not,

  1. What errors do you see?
  2. What is the output of: pip3 freeze

If it works, you should be able to run the examples:

python3 bin\

Hi, Matt.

Thanks for the response, and the welcome!
“python -vv” reported “Python 3.8.3”, but it wasn’t the 64 bit version. I uninstalled the 32 bit version, and then installed the 64 bit version of Python, pathed it and the folder with “PIP3.exe” in it, and followed your uninstall/install instructions for Joulescope. I get the failure messages here:

Next step?


Here’s the PIP3 freeze run attempt. It runs, but reports nothing:

Hi @audiobrian1

Something is not right about your pip3 install. The error is that it cannot verify the SSL certificate of pypi. I just installed Python 3.8.3 x64, and I verified that pip &pypi are working, at least for me:

>python -VV
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]

>pip3 install --no-cache-dir joulescope
Collecting joulescope
  Downloading (488kB)
     |████████████████████████████████| 491kB 1.7MB/s
Collecting python-dateutil>=2.7.3 (from joulescope)
  Downloading (227kB)
     |████████████████████████████████| 235kB ...
Collecting numpy>=1.15.2 (from joulescope)
  Downloading (12.8MB)
     |████████████████████████████████| 12.8MB 6.8MB/s
Collecting pymonocypher>=0.1.3 (from joulescope)
  Downloading (85kB)
     |████████████████████████████████| 92kB 5.8MB/s
Collecting pypiwin32>=223 (from joulescope)
Collecting psutil (from joulescope)
  Downloading (235kB)
     |████████████████████████████████| 245kB 6.4MB/s
Collecting six>=1.5 (from python-dateutil>=2.7.3->joulescope)
Collecting pywin32>=223 (from pypiwin32>=223->joulescope)
  Downloading (9.1MB)
     |████████████████████████████████| 9.1MB 1.7MB/s
Installing collected packages: six, python-dateutil, numpy, pymonocypher, pywin32, pypiwin32, psutil, joulescope
Successfully installed joulescope-0.8.14 numpy-1.18.4 psutil-5.7.0 pymonocypher- pypiwin32-223 python-dateutil-2.8.1 pywin32-227 six-1.14.0
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

>python -m pip install --upgrade pip
Collecting pip
  Downloading (1.5MB)
     |████████████████████████████████| 1.5MB 939kB/s
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-20.1.1

Are your paths correct? Try:

> where python
> python -VV
> where pip3 

I get:

c:\>where python

c:\>python -VV
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]

c:\>where pip3

Make sure that they all match what you expect.

A google search turns up some recommendations. Are you behind a corporate firewall that blocks connections? I normally would not recommend disabling SSL verification, but you can do that…

Another thought… do you also use Anaconda or another, older Python distribution? If so, you user site packages could be getting in the way. To display your site packages:

python -m site --user-site

In my opinion, site packages make things worse rather than better. Either use the global environment or a venv.

I also darkly remember having seen this pip3 SSL error (not JS related), which was caused by the company firewall. Sorry but I don’t remember the fix…

Hi, Matt.
No, mine installed in a different location. See screenshot:

Is that a problem?

I’m checking with IT on the possible firewall issues. More later …

No Anaconda package is on this machine. I intentionally deleted older Python installs (including the mistakened 32-bit installs that I mentioned earlier) before the latest Python 3.8.3 64 bit installation.

For some reason, I cannot access the screenshot on google drive. Assuming your IT department does not block the feature, you can just add the screenshot images directly to the forum post by dragging and dropping or clicking the upload button.

Oh wow. Didn’t know I could do that!

Ok. You installed python for yourself only rather than all users, but that should be fine. Can you try:

You can then open that path in File Explorer and ensure that it is empty. Assuming it’s empty, the problem is likely with IT. This StackOverflow discussion has some tips on how to deal with it, if you are ok with disabling SSL. If not, let me know, and we’ll figure something else out.

By the way, did you have any issues with installing the Joulescope UI given your IT policies?

No, I had no issues with installing the UI program. I have admin privileges.

That path doesn’t exist on this PC.

The roaming folder is there, but not the Python folder in this place.

Ok. So something is wrong with SSL certificate validation. Are you comfortable disabling SSL validation as discussed in the StackOverflow discussion? Something like:

pip3 install --trusted-host joulescope matplotlib

Hi, Matt.
Our IT department did some adjustments for this machine, and now the install works! Thanks!

I’ll be deleting all these install - related posts to clean up the topic; don’t think they would be helpful to anyone else.

1 Like

Great! I have made a note to document what to do if you get CERTIFICATE_VERIFY_FAILED when using pip to install the joulescope package.

I moved these posts to a new topic.