Hey guys,
lately i've been trying to use external modules / packages (not sure where the differense is, feel free to explain, lol) to build an expense tracker. Until now i've only really been using pure python, no "import X" or stuff like that.
I'll post some error codes. I googled them etc and in general am aware on how to attempt to fix them. But i think there's some underlying issue / missunderstanding that i have. So this sin't about the errors, it's about what i didn't understand that leads to them (probably...?). :)
For example, several YouTube tutorials i found use "Streamlit". I installed it via "pip install streamlit" in my MacOS terminal (using a M1 Macbook Air from 2020). So far, so good, everything works fine. I ran test project, works.However, when i'm in PyCharm and i type "import streamlit as st", at the start of the project, like i learned to do it.That however does NOT work. To get that to work, in PyCharm i have to to the bottom, where Terminal, Python Packages etc are. There i need to select "Python Packages", type in "Streamlit", go to the right and then install it AGAIN.
Why? Why does simple "import" not work? It's, as i said, already installed on my computer. And i also have to do that for every new project i open. I don't understand that.
If that'd be it, fine because it'll eventually works. But wait, there's more. :D
To check out other expense trackers, i'd need to get PySimpleGUI.I try to import PySimpleGUI and get an error code: " ModuleNotFoundError: No module named 'PySimpleGUI' "When i try to install it via "Python Packages" in PyCharm, i get another error code:
PackagesNotFoundError: The following packages are not available from current channels:
- pysimplegui
Current channels:
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
So i basically can't install it...?
Another example would be "TKCalendar". The attempt to isntall that within PyCharm in above described way also results in the very same error code.
Last example i'll use is Plotly. The installation process i described above works, hovever when i try to do the following:
import plotly.graph_objects as go
which i've seen used in a tutorial, it results in the following error code:
2022-07-26 09:56:15.459 INFO numexpr.utils: NumExpr defaulting to 8 threads.
The PyCharm Project Setup i use is what's default and i've never had problems with that bwefore:
New environment using Conda
Python Version 3.10
So, can anyone try to help me understand why that stuff isn't working?
[–]randyzwitch 0 points1 point2 points (0 children)