Skip to content
← Back to Community
Can I lock package version from changing when closing replit/re-running it?
Profile icon
h
has Hacker Plan
tomasztarnowski

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?

Voters
Profile icon
tomasztarnowski
Comments
hotnewtop
Profile icon
Geocube101

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

Profile icon
tomasztarnowski

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

Profile icon
Geocube101