- 2022.03.28 Monday
- スポンサーサイト
-
一定期間更新がないため広告を表示しています
- | スポンサードリンク | - | | - | - | pookmark |
- 2017.02.11 Saturday
- Mac py QT (キュート) で エラー
-
Last login: Mon Jan 16 02:15:53 on console
whaisonMacBookAir:~ whaison$ python --version
Python 2.7.10
whaisonMacBookAir:~ whaison$ brew
Example usage:
brew [info | home | options ] [FORMULA...]
brew install FORMULA...
brew uninstall FORMULA...
brew search [foo]
brew list [FORMULA...]
brew update
brew upgrade [FORMULA...]
brew pin/unpin [FORMULA...]
Troubleshooting:
brew doctor
brew install -vd FORMULA
brew [--env | config]
Brewing:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
Further help:
man brew
brew home
whaisonMacBookAir:~ whaison$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
curl: (22) The requested URL returned error: 404 Not Found
whaisonMacBookAir:~ whaison$ python --version
Python 2.7.10
whaisonMacBookAir:~ whaison$ brew install pyqt --with-python3
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Installing dependencies for pyqt: xz, pkg-config, readline, sqlite, g
==> Installing pyqt dependency: xz
==> Downloading https://fossies.org/linux/misc/xz-5.2.1.tar.gz
curl: (22) The requested URL returned error: 410 Gone
Trying a mirror...
==> Downloading http://tukaani.org/xz/xz-5.2.1.tar.gz
==> Downloading from https://jaist.dl.sourceforge.net/project/lzmautils/xz-5.2.1
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/xz/5.2.1
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/lzma
/usr/local/include is not writable.
You can try again using:
brew link xz
==> Summary
🍺 /usr/local/Cellar/xz/5.2.1: 59 files, 1.6M, built in 3.1 minutes
==> Installing pyqt dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
==> Downloading from https://pkg-config.freedesktop.org/releases/pkg-config-0.28
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.28 --disable-host-tool -
==> make
==> make check
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink .
/usr/local/opt is not writable.
You can try again using:
brew link pkg-config
==> Summary
🍺 /usr/local/Cellar/pkg-config/0.28: 10 files, 600K, built in 7.1 minutes
==> Installing pyqt dependency: readline
==> Downloading http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz
==> Downloading from http://public.p-knowledge.co.jp/gnu-mirror/readline/readlin
######################################################################## 100.0%
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2a
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "readline--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff
whaisonMacBookAir:~ whaison$ python --version
Python 2.7.10
whaisonMacBookAir:~ whaison$ which python
/usr/local/bin/python
whaisonMacBookAir:~ whaison$ easy_install pip
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '
/Library/Python/2.7/site-packages/test-easy-install-50924.pth
'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
whaisonMacBookAir:~ whaison$ brew install sip
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Downloading https://downloads.sourceforge.net/project/pyqt/sip/si
==> Downloading from https://jaist.dl.sourceforge.net/project/pyqt/si
## ######## ###################### ############################ ############################################# #################################################### ###################################################### ############################################################ ############################################################################################################################################# 100.0%
==> python configure.py --deployment-target=10.12 --destdir=/usr/loca
==> make
==> make install
==> make clean
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into
/usr/local
Could not symlink シンボリックリンク include
/sip
/usr/local/include
is not writable.
You can try again using:
brew link sip
==> Caveats
The sip-dir for Python is
/usr/local/share/sip.
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p
/Users/whaison/Library/Python/2.7/lib/python/site-packages
echo '
import site; site.addsitedir("
/usr/local/lib/python2.7/site-packages
")' >>
/Users/whaison/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
/usr/local/Cellar/sip/
4.16.9: 10 files, 888K, built in 23 seconds
whaisonMacBookAir:~ whaison$ brew install pyqt5 --with-python --without-python3
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
Error: You must `brew link xz pkg-config sip' before pyqt5 can be installed
whaisonMacBookAir:~ whaison$
---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
------------------------------------ python 2.7.12 installed ------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
whaisonMacBookAir:~ whaison$ python --version
Python 2.7.10
whaisonMacBookAir:~ whaison$
Last login: Sat Feb 11 13:47:12 on ttys006
whaisonMacBookAir:~ whaison$ python --version
Python 2.7.12
whaisonMacBookAir:~ whaison$ Python 2.7.10
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
------------------------------------ brew install pyqt3 ------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
Last login: Fri Feb 10 16:46:34 on ttys003
whaisonMacBookAir:~ whaison$ brew install pyqt3
Error: No available formula for pyqt3
==> Searching formulae...
==> Searching taps...
==> You haven't updated Homebrew in a while.
A formula for pyqt3 might have been added recently.
Run `brew update` to get the latest Homebrew updates!
whaisonMacBookAir:~ whaison$ brew install pyqt4
Error: No available formula for pyqt4
==> Searching formulae...
==> Searching taps...
==> You haven't updated Homebrew in a while.
A formula for pyqt4 might have been added recently.
Run `brew update` to get the latest Homebrew updates!
whaisonMacBookAir:~ whaison$ brew install pyqt5
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
Error: You must `brew link xz pkg-config sip' before pyqt5 can be installed
whaisonMacBookAir:~ whaison$ brew link xz pkg-config sip
Linking /usr/local/Cellar/xz/5.2.1...
Error: Could not symlink include/lzma
/usr/local/include is not writable.
whaisonMacBookAir:~ whaison$ brew update
warning: unable to unlink .yardopts: Permission denied
warning: unable to unlink CONTRIBUTING.md: Permission denied
warning: unable to unlink SUPPORTERS.md: Permission denied
fatal: cannot create directory at '.github': Permission denied
Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master
whaisonMacBookAir:~ whaison$
---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
------------------------------------ python 2.7.12 install ------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
other window
Last login: Fri Feb 10 16:46:24 on ttys002
whaisonMacBookAir:~ whaison$ python
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PyQt5
>>> import PyQt4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PyQt4
>>> import pyqt3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pyqt3
>>> import PyQt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PyQt
>>>
-------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
------------------------------------ python 2.7.12 install ------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
/Users/whaison/Downloads/pyqt/
DebugLogger00100_py.shell
DebugLogger00100.py
DebugLogger00100.py
http://www.mediafire.com/file/6y8lehl7kuhe7r4/pyqt.zip
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
- | whaison | py QY,PySide,(Code InterFace Design) | 17:05 | comments(0) | - | pookmark |
- Comment