Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
ERROR: The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.
python Python 3.7.0 (default, Oct 9 2018, 10:31:47) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license"for more information. >>> import cv2 >>> cv2.__version__ '4.2.0'
defexit_handler(): print("exit') import atexit atexit.register(exit_handler) if __name__ == '__main__': print("OK)
ctrl+c/ ctrl+z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import signal from sys import exit
defhandler(signal_received, frame): # Handle any cleanup here print('SIGINT or CTRL-C detected. Exiting gracefully') exit(0)
if __name__ == '__main__': # Tell Python to run the handler() function when SIGINT is recieved signal.signal(signal.SIGINT, self.ctrl_exit_handler) # ctlr + c signal.signal(signal.SIGTSTP, self.ctrl_exit_handler) # ctlr + z
print('Running. Press CTRL-C to exit.') whileTrue: # Do nothing and hog CPU forever until SIGINT received. pass
deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
Ubuntu 18.04
1 2 3 4 5 6 7 8 9 10 11 12 13 14
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
requests.exceptions.ProxyError: HTTPConnectionPool(host=’127.0.0.1’, port=8888): Max retries exceeded with url: http://www.baidu.com/ (Caused by ProxyError(‘Cannot connect to proxy.’, NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f5611990080>: Failed to establish a new connection: [Errno 111] Connection refused’)))