Anaconda Python: where are the virtual environments stored?

If you activate the environment you’re interested in, you can find that answer in the environment variables. on MacOS/Linux: source activate python35 echo $CONDA_PREFIX on Windows: conda activate python35 echo %CONDA_PREFIX% You can also run conda info –envs, and that will show the paths to all your environments. To get the path to the instance … Read more

`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)

Solved… in part. Apparently, Installing the latest versions of OS X (e.g. Yosemite or El Capitan) removes some directories in /usr/local/var/postgres. To fix this you simply recreate the missing directories: mkdir -p /usr/local/var/postgres/pg_commit_ts mkdir -p /usr/local/var/postgres/pg_dynshmem mkdir -p /usr/local/var/postgres/pg_logical/mappings mkdir -p /usr/local/var/postgres/pg_logical/snapshots mkdir -p /usr/local/var/postgres/pg_replslot mkdir -p /usr/local/var/postgres/pg_serial mkdir -p /usr/local/var/postgres/pg_snapshots mkdir -p /usr/local/var/postgres/pg_stat mkdir … Read more

Setting environment variables via launchd.conf no longer works in OS X Yosemite/El Capitan/macOS Sierra/Mojave?

Create an environment.plist file in ~/Library/LaunchAgents/ with this content: <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>Label</key> <string>my.startup</string> <key>ProgramArguments</key> <array> <string>sh</string> <string>-c</string> <string> launchctl setenv PRODUCTS_PATH /Users/mortimer/Projects/my_products launchctl setenv ANDROID_NDK_HOME /Applications/android-ndk launchctl setenv PATH $PATH:/Applications/gradle/bin </string> </array> <key>RunAtLoad</key> <true/> </dict> </plist> You can add many launchctl commands inside the … Read more