Python Forum
Problem with importing an installed package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with importing an installed package
#4
Did the other python scripts you ran have imports

Let me try and elaborate more. When windows runs it, it gets this import that it cannot find because it just looks in the same directory. When it is run with Python (python sample.py), Python knows to also look in another folder located somewhere on the computer holding the imports.

I don't really understand your problem here tho. Were you just asking about it? Wanted to fix it? The only way to fix this is to just use python to run the file as in "python sample.py" in the cmd, or run it as an .exe, or just run it from the IDLE or IDE.
Reply


Messages In This Thread
RE: Problem with importing an installed package - by SheeppOSU - Jun-10-2019, 03:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MPEG DASH Package implementation similar to M3U8 package anantha_narayanan 1 956 May-05-2025, 08:34 AM
Last Post: pintailscratchy
  problem install somewhere package akbarza 1 1,742 Dec-27-2023, 01:25 PM
Last Post: Gribouillis
  imdby package problem lunacy90 8 3,535 Sep-04-2023, 07:13 PM
Last Post: deanhystad
  when package built, requirements not installed sabuzaki 1 1,339 Apr-07-2023, 09:01 AM
Last Post: sabuzaki
  Problem with importing python-telegram library into the project gandonio 1 3,960 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  Problem with importing Python file in Visual Studio Code DXav 7 10,637 Jun-15-2022, 12:54 PM
Last Post: snippsat
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 9,877 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  pip list to show all versions of a package installed pvbadiger05b 4 3,967 May-21-2020, 06:48 PM
Last Post: jameshonest
  Package installed through Anaconda "not found" by Python zonova 0 3,258 May-08-2020, 11:50 PM
Last Post: zonova
  Importing module from a package results in import error goghvv 2 3,457 Mar-27-2020, 07:13 PM
Last Post: goghvv

Forum Jump:

User Panel Messages

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