pipenv in shell
I have been having difficulties installing scrapy (https://replit.com/talk/ask/Not-able-to-install-scrapy/134335). Therefore, decided to do the usual way like I'd do in vscode.
Installed pipenv, did pipenv install of all the packages.
Upon executing it via pipenv: pipenv run pythin3 filename.py, I ran into a dotenv issue. I have a password stored in the environment variables, but I was not able to access it via my_token = os.environ['TOKEN']
After a bit of idle time when I got back to the shell, it no longer had pipenv and the packages installed. I mean, I will have to re-do the stuff now.
So, that's for some context to my follow on questions:
- How do I get the environment variables stored in replit to work if I use pipenv?
- How do I make pipenv and packages that were installed persist across shell disconnects?
I have a similar problem. I'm trying to deploy a bot with the command "pipenv run bot" but I can't figure out how to do this. It automatically chooses to use the command "py main.py"
Is there anyone that can help me?
Thank you in advance!