Python third party Module global import -
i'm learning bit of python , want import paperclip third party module python file.
yes, installed pyperclip module pip install pyperclip
.
if create file on desktop, error says traceback (most recent call last): file "test.py", line 1, in <module> import pyperclip importerror: no module named pyperclip
however if put test.py in python folder, runs.
the question is, there way make installed modules available on global scope ? want have file e.g. on desktop , run without having import issues.
thank you.
greetings
edit: i'm working on mac, maybe leads problem
found problem.
the pip install
automatically used pip3.5 install
whereas python test.py
didn't use python3.5 test.py
thank @bakurìu
is there way can define python3.5
as python
?
Comments
Post a Comment