Open AlexisData opened 4 years ago
You need to activate the environment in the batch file prior to calling conda. More details can be found in the [documentation](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activate-env
Actual Behavior
I have a script sending message to the Telegram Messenger API.
When I run it in Spyder, everything is ok.
When I use the batch created using "C:\Users\Alex\anaconda3\python.exe" as path in my txt file, I have the following errors (in Anaconda Prompt)
Expected Behavior
When I launch my script in SPyder, everything is ok : I receive the text I want to receive on my Instagram messenger account. I would like to be able to do the same with my batch file.
Steps to Reproduce
I have a script as follow : def telegram_bot_sendtext(bot_message):
telegram_bot_sendtext("text")
I created the batch file using : "C:\Users\Alex\anaconda3\python.exe" "C:\Users\Alex\Desktop\U\project.py" pause
Anaconda or Miniconda version:
Anaconda3 . 2020.02
Operating System:
I'm on Windows 10 v1903