0

I have recently moved to ubuntu, and I got some problems with installing packages written in windows.

Solution

I have installed package with incorrect syntax sudo pip3 install . I have missed -e flag! sudo pip3 install -e . is correct way.

If someone can describe the diffrence that would be great. Also when installing for example numpy, it does not need -e flag, why?

Old

If I will try to run it from terminal python3 TwitterAnalyzer/_startGUI.py or change pwd and run python3 _startGUI.py it does not work. No matter if I install module in ubuntu or venv. Import in python shell works. It does not work in Py Shell, I did some mistakes.

Error: ModuleNotFoundError: No module named 'TwitterAnalyzer.GUI' pip freeze and pip list shows it on list. I can import whole package import TwitterAnalyzer but nothing from it.

# Project Tree
.TwitterAnalyzer
    |---LICENSE
    |---README.md
    |---setup.py
    |---TwitterAnalyzer
        |---Analyzer
            |---220_kookaburra.png
            |---Analyzer.py
            |---Readme.md
            |---secret_token.txt
            |---TwitterApi.py
            |---__init__.py
        |---GUI
            |---convertQT_to_py.py
            |---GUI.py
            |---GUI_QT.ui
            |---_App.py
        |---tweets
            |> > Ignored
        |---_collect_homeTweets.py
        |---_startGUI.py
        |---__init__.py
    |---unittest
        |---testing_GuiApp.py
    |---venv
        |> > Ignored
Grzegorz Krug
  • 186
  • 2
  • 11

0 Answers0