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 installautomatically used pip3.5 install
whereas python test.pydidn't use python3.5 test.py

thank @bakurìu

is there way can define python3.5as python?


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -