Conda set LD_LIBRARY_PATH for env only [duplicate]

You can set environment variables when an environment is activated by editing the activate.d/env_vars.sh script. See here: https://conda.io/docs/user-guide/tasks/manage-environments.html#macos-and-linux The key portions from that link are: Locate the directory for the conda environment in your Terminal window, such as /home/jsmith/anaconda3/envs/analytics. Enter that directory and create these subdirectories and files: cd /home/jsmith/anaconda3/envs/analytics mkdir -p ./etc/conda/activate.d mkdir -p … Read more

Installing PyGtk in virtualenv

The trick is to manually set the correct paths and then run configure inside the virtualenv. This is quite basic, but it worked for me. Install python-config in the virtual env and link it to python2.7-config: pip install config ln -s /home/PATH/TO/VIRT/bin/python-config /home/PATH/TO/VIRT/bin/python2.7-config Install cairo in the virtual env: wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2 tar -xf py2cairo-1.10.0.tar.bz2 cd … Read more

Batch equivalent of “source” on Windows: how to run a Python script from a virtualenv

I’d say you just need to prepend ‘call’ to your activate.bat invocation, to ensure that the current batch file is resumed after activate is executed: call %~dp0env\Scripts\activate.bat Consider doing the same for deactivate.bat. Furthermore, if you want to ensure that the current cmd.exe environment is not polluted by a call to your batch file, consider … Read more

venv doesn’t create activate script python3

Looks like you are using Ubuntu 14.04. It was shipped with a broken pyvenv. There is a simple work around to create venv using Python 3 1. Create venv without pip python3 -m venv –without-pip test4 or pyvenv-3.4 –without-pip test4 2. Get pip in your env source test4/bin/activate curl https://bootstrap.pypa.io/get-pip.py | python deactivate source test4/bin/activate … Read more

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