Skip to content

Tag: python-3.x

julia.install() fails on python import error

I am trying to run a Julia script from python. I have Julia 1.6.4 installed (also tried 1.7.3) and installed pip install julia from Pycharm’s terminal in the virtual environment. When importing julia and then running julia.install() I get the following error message: I use Pycharm with a virtual environ…

Why can’t I install a Python package with the Python requirement “>=3.8,<3.11" into a Poetry project with the Python version "^3.9"?

I’m having an issue installing dependencies into my Poetry project. If I run poetry new (as described in https://python-poetry.org/docs/basic-usage/), I can create a new project: My project structure looks like this after I delete a few files not needed for this reproduction: My pyproject.toml file look…

How to clear a dictionary after return?

I am having issue cleaning dictionaries after return the one. I am using fastAPI and my API GET an Age value then I create a list of ages with 4 values including my received value. I am looking to receive always 4 values only the input age and the other ones, in first execution the code works correctly but if

Flip sprite when changing the direction of movement

Today I started to learn pygame and python to eventually remake the simple game “Graphwar”. As my first project I chose to make a really simple 2d car game while following a tutorial, now I want to try something on my own. That is to make my cars to visually change direction by using pygame.transf…