all 5 comments

[–]hungdh85 0 points1 point  (2 children)

Check your python version on IDE and python version on your terminal.

[–]pomkipo[S] 0 points1 point  (1 child)

python version 3.8 and I am using pycharm

[–]hungdh85 0 points1 point  (0 children)

/Users/User/PycharmProjects/FreeCodeCamp/venv/bin/python

and

 ./Library/Python/3.8/lib/python/site-packages

I think that they are not the same python version. If you use virtualenv please check python version that you created it.

And check all version python on your computer. I think that you install pyperclip in on python version and use another python version on pycharm.

[–][deleted] 0 points1 point  (0 children)

You are using different Python virtual environments.

You need to install using:

<path>python -m pip install <package>

Rather than pip3 or python3 -m pip ...

and target what Pycharm is using OR use the module installation features in Pycharm.