env

Mismatch between sys.executable and sys.version in Python

一笑奈何 提交于 2019-11-27 06:47:42
问题 There are two Python interpreters installed: [user@localhost ~]$ /usr/bin/python -V && /usr/local/bin/python -V Python 2.4.3 Python 2.7.6 Sudo changes PATH for every command it runs as follows: [user@localhost ~]$ env | grep PATH && sudo env | grep PATH PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/user/bin PATH=/usr/bin:/bin I run a test script: [user@localhost ~]$ cat what_python.py #!/usr/bin/env python import sys print sys.executable print sys.version [user

Mac OS: /usr/bin/env: bad interpreter: Operation not permitted

☆樱花仙子☆ 提交于 2019-11-27 00:34:46
问题 I'm trying to run this script on Mac OS 10.7 (Lion) and I'm getting the error: $ bbcolors -bash: /usr/local/bin/bbcolors: /usr/bin/env: bad interpreter: Operation not permitted I've successfully run this script on other Macs of mine. It's just this script downloaded and unmodified from Daring Fireball. I found this person with a very similar problem but the accepted answer was that the filesystem had a 'noexe' option on mount. I'm pretty sure that's not the case for me because I've just got

How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

做~自己de王妃 提交于 2019-11-26 21:14:38
I've installed and have been using the Anaconda Python distribution, and I have started using the Anaconda (Conda) environment. I can use the standard conda install... command to put packages from the distribution into my environments, but to use anything outside (i.e. Flask-WTF, flask-sqlalchemy, and alembic) I need to use pip install in the active environment. However, when I look at the contents of the environment, either in the directory, or using conda list these pip install ed packages don't show up. Using pip freeze and pip list just lists every package I've ever installed. Is there a

Use different PHP version CLI executable for one command

痞子三分冷 提交于 2019-11-26 19:42:46
问题 So I have Gentoo box with three PHP versions installed (nevermind the reasons): /usr/bin/php -> /usr/lib64/php5.4/bin/php /usr/bin/php5.5 -> /usr/lib64/php5.5/bin/php /usr/bin/php5.6 -> /usr/lib64/php5.4/bin/php I want to install Laravel framework using composer: $ composer create-project laravel/laravel --prefer-dist This however throws an error because Laravel requires PHP > 5.5.9 and the default php interpreter is 5.4 . So I issue another command: $ /usr/bin/php5.6 /usr/bin/composer create

How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

大城市里の小女人 提交于 2019-11-26 07:51:18
问题 I\'ve installed and have been using the Anaconda Python distribution, and I have started using the Anaconda (Conda) environment. I can use the standard conda install... command to put packages from the distribution into my environments, but to use anything outside (i.e. Flask-WTF, flask-sqlalchemy, and alembic) I need to use pip install in the active environment. However, when I look at the contents of the environment, either in the directory, or using conda list these pip install ed packages