Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
resolving issues with path
#1
I am on windows 10, python and all his modules has been installed with miniconda, .py files added to PATHEXT, bin folder and python added to PATH

If i run a script with C:\Users\vincenzo\Miniconda3\python.exe D:\cloud\Programmi\bin\wrap.py text it works

but if i run wrap text i get error:

Traceback (most recent call last): File "D:\cloud\Programmi\bin\wrap.py", line 6, in import pyperclip, click ImportError: No module named pyperclip

If i run

import importlib
print(importlib.util.find_spec('pyperclip'))
i get:

Output:
ModuleSpec(name='pyperclip', loader=<_frozen_importlib_external.SourceFileLoader object at 0x00000254796F94A8>, origin='C:\Users\vincenzo\Miniconda3\lib\site-packages\pyperclip\__init__.py', submodule_search_locations=['C:\Users\vincenzo\Miniconda3\lib\site-packages\pyperclip'])
I tried adding C:\Users\vincenzo\Miniconda3\lib\site-packages and C:\Users\vincenzo\Miniconda3\lib to PATH, nothing changed.

if i run:
import sys
for path in sys.path: print(path)
i get:
Output:
C:\Users\vincenzo\Miniconda3 C:\Users\vincenzo\Miniconda3\python37.zip C:\Users\vincenzo\Miniconda3\DLLs C:\Users\vincenzo\Miniconda3\lib C:\Users\vincenzo\Miniconda3\lib\site-packages C:\Users\vincenzo\Miniconda3\lib\site-packages\win32 C:\Users\vincenzo\Miniconda3\lib\site-packages\win32\lib C:\Users\vincenzo\Miniconda3\lib\site-packages\Pythonwin
Am i doing something wrong? How could i say to python where to find these missing modules?

added more info hoping someone can help me solve this
Reply


Messages In This Thread
resolving issues with path - by aster - Mar-31-2019, 10:57 PM
RE: resolving issues with path - by snippsat - Mar-31-2019, 11:08 PM
RE: resolving issues with path - by aster - Mar-31-2019, 11:57 PM
RE: resolving issues with path - by snippsat - Apr-01-2019, 01:08 AM
RE: resolving issues with path - by aster - Apr-01-2019, 09:08 AM
RE: resolving issues with path - by snippsat - Apr-01-2019, 09:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,460 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,222 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  mySQL Database error not resolving. cybertooth 2 3,232 Aug-30-2021, 05:45 PM
Last Post: ibreeden
  pathlib: resolving a path that does not exist Skaperen 6 5,515 Sep-08-2018, 12:25 AM
Last Post: Skaperen
  .pth file does not show up in sys.path when configuring path. arjunsingh2908 2 5,780 Jul-03-2018, 11:16 AM
Last Post: arjunsingh2908
  Help resolving error with webpy app bill349 1 3,179 May-18-2017, 09:36 AM
Last Post: bill349

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020