Install Python on M1 Mac arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" eval "$(/usr/local/bin/brew shellenv)" arch -x86_64 pyenv install 2.7.18 ----------------------------------------------------------------------- Python build fails on M1 Apple Silicon with arm64 homebrew BUILD FAILED (OS X 11.6 using python-build 20180424) Inspect or clean up the working tree at /var/folders/h8/kskgcwkx4gb614nhfhhh0xgw0000gn/T/python-build.20211103220722.87338 Results logged to /var/folders/h8/kskgcwkx4gb614nhfhhh0xgw0000gn/T/python-build.20211103220722.87338.log Solution Type which brew in the terminal and it's shows you the location of brew! You're actually overwriting an existing install having a broken core tap. Run these commands into your terminal rm -fr $(brew --repo homebrew/core) # because you can't brew untap homebrew/core brew tap homebrew/core
Discover and enjoy a wide range of IT solutions designed to make your digital experience smoother, faster, and more efficient. From software tips to troubleshooting guides, find everything you need in a place. Stay updated, stay secure, and enhance your tech skills with reliable, user-friendly information and resources.
Wednesday, November 3, 2021
Install Python on M1 Mac
Thursday, September 23, 2021
brew install and brew update hang with error: 'refs/remotes/origin/master': unknown revision or path not in the working tree
Saturday, July 17, 2021
Nicepage: Export and Update of WP Content from App
Wednesday, April 14, 2021
Create First Root User
mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
Thursday, March 25, 2021
Grant Single DB to MYSQL User
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'%';
FLUSH PRIVILEGES;
Sunday, March 21, 2021
Apache permission denied (Ubuntu)
[Mon Mar 22 06:43:51.067590 2021] [core:error] [pid 25490] (13)Permission denied: [client 27.109.115.156:55380] AH00035: access to /pssusermanipulation/ denied (filesystem path '/var/www/api/folder/folder') because search permissions are missing on a component of the path
Solution: chmod a+rX -R /var/www
Configure Django with Apache
Python2
sudo apt-get install python-pip apache2 libapache2-mod-wsgi
Python3
sudo apt-get install python3-pip apache2 libapache2-mod-wsgi-py3
<VirtualHost *:80>
ServerName abc.com
ServerAlias abc.com
Alias /static /var/www/api/env/lib/python3.6/site-packages/django/contrib/admin/static
<Directory /var/www/api/folder/folder >
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess tigergourd python-path=/var/www/folder/folder python-home=/var/www/api/env
WSGIProcessGroup groupname
WSGIScriptAlias / /var/www/api/folder/folder/wsgi.py
</VirtualHost>
-- In case error when run manage.py-----
mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported
pip install mysql-connector-python
Running setup.py clean for Pillow
Building wheel for pycrypto
pip uninstall pycrypto
pip install pycryptodome