macos-sierra

Where is the .profile file on mac?

Where is the .profile file on mac? Question: I have a MacBook Pro 13` inch (without touch bar) and it is running mac os sierra. I have installed Xcode, command line tools and homebrew. Now I want to install python 3 and make it a default interpreter when calling it from the terminal. I have …

Total answers: 5

Unexpected strftime() behaviour on Python and macOS

Unexpected strftime() behaviour on Python and macOS Question: I’m obtaining inconsistent behaviour with the output of datetime.strftime(). I’m using macOS Sierra 10.12.6 and Python 3.6.2. I have a Python program, named wut.py, that is #!/usr/bin/python from datetime import datetime import locale if __name__ == “__main__”: print(locale.getlocale()) print(datetime.today().strftime(‘%c’)) In a terminal, I write $ date Gio …

Total answers: 3

python setup.py egg_info mysqlclient

python setup.py egg_info mysqlclient Question: Trying to install mysqlclient using pip3 on Python 3.6.0 $ pip3 install mysqlclient Collecting mysqlclient Using cached mysqlclient-1.3.10.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File “<string>”, line 1, in <module> File “/private/var/folders/3k/08g3yx_12kg99kyfs989md600000gn/T/pip-build-1qv_89jc/mysqlclient/setup.py”, line 17, in <module> metadata, options = get_config() File “/private/var/folders/3k/08g3yx_12kg99kyfs989md600000gn/T/pip-build-1qv_89jc/mysqlclient/setup_posix.py”, line 54, …

Total answers: 10

Upgrade the Python package dateutil: Could not find a version

Upgrade the Python package dateutil: Could not find a version Question: I tried to upgrade dateutil from 2.5.3 to the newest version 2.6.0 with pip install dateutil –upgrade, but got the issue Could not find a version. $ pip install dateutil –upgrade Collecting dateutil Could not find a version that satisfies the requirement dateutil (from …

Total answers: 1

File not found error when pip installing python-lzo

File not found error when pip installing python-lzo Question: I’m trying to install python-lzo on mac OS Sierra. I have used brew to install the c lzo library: brew update brew install lzo I then try and install python-lzo using a virtual environment and pip: $ virtualenv ./env $ . ./env/bin/activate $ pip install python-lzo …

Total answers: 3