Ask coding questions

← Back to all posts
Can I lock package version from changing when closing replit/re-running it?
h
tomasztarnowski (2)

Hi team,

I still have problem with one of the packages in my python script. I need it in version 3.4.1 (newest one), but every-time I re-open my replit it magically "disappear" and needs to be updated once again.

Can I somehow lock my updates done via shell console with pip install XXX==version, so I don't need to do it over and over?

Comments
hotnewtop
Geocube101 (663)

Try setting the version in the "pyproject.toml" file. It holds the dependencies and respective versions for your project.

tomasztarnowski (2)

@Geocube101 do I do it by manually updating value by hand?