Python - Module Not Found

后端 未结 6 538
陌清茗
陌清茗 2020-11-27 17:33

I am a beginner with Python. Before I start, here\'s my Python folder structure

-project
----src
------model
--------order.py
------hello-world.py

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 18:05

    After trying to add the path using:

    pip show
    

    on command prompt and using

    sys.path.insert(0, "/home/myname/pythonfiles")
    

    and didn't work. Also got SSL error when trying to install the module again using conda this time instead of pip.

    I simply copied the module that wasn't found from the path "Mine was in

    C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages 
    

    so I copied it to 'C:\Users\user\Anaconda3\Lib\site-packages'

提交回复
热议问题