Schedule a Python script via batch on windows (using Anaconda)

I would be a bit careful in calling python directly through environment as one never knows if the internals for activate function has changed. I’m just using basic bat-script to help me out. SET log_file=%cd%\logfile.txt call C:\Anaconda3\Scripts\activate.bat cd \script_directory python script.py arg1 arg2 > %log_file% This script saves the log-file wherever the bat is run … Read more

export conda environment without prefix variable which shows local path to executable

This question was already addressed here, but without a real explanation on the role of prefix. At least there is a solution to exclude the prefix line programmatically. It is not mentioned in the conda doc, except for the fact that conda env export –prefix PATH allows to specify a prefix. But note that –name … Read more

conda environment in google colab [google-colaboratory]

You can activate and run a new conda environment in Google Colab by using the magic %%bash command: %%bash source activate myenv python import sys # some simple python commands sys.path.append(‘/usr/local/lib/python3.6/site-packages’) print(sys.path) print(“Python version”) print(sys.version) Also including a few other commands I needed to run to get my environment setup completely: !conda update conda -y … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)