Ubuntu宿主机安装VNCserver,并使用VNC远程连接桌面
之前有两篇关于Ubuntu下安装vnc进行远程连接文章。 不过有的同学可能弄混了,那两篇是在容器lxd下进行安装的,而不是宿主机,其实宿主机下使用VNC进行远程连接更加方便。因为我们默认安装的系统桌面就是Gnome,所以我们只需要利用系统自 […]
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xcb in position 93: invalid continuation byte
使用py2的时候是没有问题的,但是在使用py3的时候就提示这个,并且,在保存文档的时候已经按照UTF-8来保存了,但是读取的时候还是提示:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte […]
Command “git clone -q https://github.com/cocodataset/cocoapi.git /tmp/pip-req-build-b5g9zq4e” failed with error code 128 in None
最近配环境真的是配的我头昏脑涨,这不,装个cocoapi都能扯出这么多事。 命令:sudo pip3 install “git+https://github.com/cocodataset/cocoapi.git#subdirectory= […]
Python2.7安装OpenCV错误:TypeError: ‘NoneType’ object is not iterable
Python 安装opencv-python出现错误:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting opencv-python==3.4.10.37 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/46/3e/1b61ed8e501c5d44239602c2e83d2ae43d01f9ec0a570c7cc43169c873bb/opencv-python-3.4.10.37.tar.gz (87.5MB) |████████████████████████████████| 87.5MB 11.8MB/s Installing build dependencies ... done Getting requirements to build wheel ... error ERROR: Command errored out with exit status 1: command: /Users/mcj/anaconda3/envs/py2/bin/python /Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/tmpD3tJeD cwd: /private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-install-67Cgcp/opencv-python Complete output (22 lines): Traceback (most recent call last): File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module> main() File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel return hook(config_settings) File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires self.run_setup() File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 243, in run_setup self).run_setup(setup_script=setup_script) File "/private/var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/pip-build-env-RJWX8u/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 448, in <module> main() File "setup.py", line 99, in main % {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))} File "/Users/mcj/anaconda3/envs/py2/lib/python2.7/re.py", line 210, in escape s = list(pattern) TypeError: 'NoneType' object is not iterable ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/mcj/anaconda3/envs/py2/bin/python /Users/mcj/anaconda3/envs/py2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/_q/nw2x15wx38l8hngtj0x2h3rw0000gn/T/tmpD3tJeD Check the logs for full command output. |
解决办法: 主要原因是Python 安装的OpenCV版本的问题,只需要改为: pip install opencv- […]
Mac终端运行结束后自动关闭终端
现在开机自动运行了一些脚本,但是运行完之后终端并没有关闭,想改成脚本运行结束之后就自动关闭窗口。 方法如下: 终端-偏好设置-描述文件-shell-当 shell 退出时。改下面为关闭窗口就可以了。 本文最后更新于2020年9月8日,已超过 […]
Mac无法打开隔空投送或Mac隔空投送只能发送不能接收
最近遇到很奇怪的事情,Mac端的隔空投送时灵时不灵的,有时候Mac端可以发现IPhone和Ipad,而这两个发现不了Mac,有时候又相反,IPhone和Ipad可以发现Mac,而Mac死活都找不到那两个。经过我多次实验,终于发现了原因。 主 […]
Mac端安装pip2/3的简单方法
Mac默认只有Python2,但是没有pip2,下面说一下比较简单的安装方法,几条命令即可。 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python2 get-pip.p […]
宝塔面板安装OLAINDEX 5.0教程
官网上的教程太旧了(2020年09月04日19:38:23),还是4.0的。有几个命令有错误,在这里写个修改版的备份一下: 安装要求: 内存: 512M以上,推荐768M以上(纯面板约占系统60M内存) 硬盘: 100M以上可用硬盘空间(纯 […]
宝塔 OLAINDEX 各版本修改密码方法 | OLAINDEX 密码忘了怎么办?
4.0 /www/server/php/73/bin/php artisan od:password 5.0 /www/server/php/73/bin/php artisan helper:reset-password 本文最后更新于2 […]
This package requires php ^7.2.5 but your PHP version (7.1.33) does not satisfy that requirement.
有个简单的错误:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
Reading ./composer.json Loading config file /root/.config/composer/config.json Loading config file /root/.config/composer/auth.json Loading config file ./composer.json Checked CA file /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem: valid Failed to initialize global composer: Composer could not find the config file: /root/.config/composer/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Running 1.9.1 (2019-11-01 17:20:17) with PHP 7.1.33 on Linux / 3.10.0-514.26.2.el7.x86_64 Reading ./composer.lock Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Reading ./composer.lock Resolving dependencies through SAT Dependency resolution completed in 0.000 seconds Your requirements could not be resolved to an installable set of packages. Problem 1 - This package requires php ^7.2.5 but your PHP version (7.1.33) does not satisfy that requirement. Problem 2 - The requested PHP extension ext-fileinfo * is missing from your system. Install or enable PHP's fileinfo extension. Problem 3 - Installation request for doctrine/dbal 2.10.2 -> satisfiable by doctrine/dbal[2.10.2]. - doctrine/dbal 2.10.2 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 4 - Installation request for doctrine/inflector 2.0.3 -> satisfiable by doctrine/inflector[2.0.3]. - doctrine/inflector 2.0.3 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 5 - Installation request for doctrine/lexer 1.2.1 -> satisfiable by doctrine/lexer[1.2.1]. - doctrine/lexer 1.2.1 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 6 - Installation request for hashids/hashids 4.0.0 -> satisfiable by hashids/hashids[4.0.0]. - hashids/hashids 4.0.0 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 7 - Installation request for laravel/framework v7.22.4 -> satisfiable by laravel/framework[v7.22.4]. - laravel/framework v7.22.4 requires php ^7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 8 - Installation request for laravel/tinker v2.4.1 -> satisfiable by laravel/tinker[v2.4.1]. - laravel/tinker v2.4.1 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 9 - Installation request for laravel/ui v2.1.0 -> satisfiable by laravel/ui[v2.1.0]. - laravel/ui v2.1.0 requires php ^7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 10 - Installation request for league/flysystem 1.0.70 -> satisfiable by league/flysystem[1.0.70]. - league/flysystem 1.0.70 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. Problem 11 - Installation request for monolog/monolog 2.1.1 -> satisfiable by monolog/monolog[2.1.1]. - monolog/monolog 2.1.1 requires php >=7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 12 - Installation request for psr/event-dispatcher 1.0.0 -> satisfiable by psr/event-dispatcher[1.0.0]. - psr/event-dispatcher 1.0.0 requires php >=7.2.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 13 - Installation request for ramsey/collection 1.0.1 -> satisfiable by ramsey/collection[1.0.1]. - ramsey/collection 1.0.1 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 14 - Installation request for ramsey/uuid 4.1.0 -> satisfiable by ramsey/uuid[4.1.0]. - ramsey/uuid 4.1.0 requires php ^7.2 || ^8 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 15 - Installation request for symfony/console v5.1.3 -> satisfiable by symfony/console[v5.1.3]. - symfony/console v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 16 - Installation request for symfony/css-selector v5.1.3 -> satisfiable by symfony/css-selector[v5.1.3]. - symfony/css-selector v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 17 - Installation request for symfony/error-handler v5.1.5 -> satisfiable by symfony/error-handler[v5.1.5]. - symfony/error-handler v5.1.5 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 18 - Installation request for symfony/event-dispatcher v5.1.5 -> satisfiable by symfony/event-dispatcher[v5.1.5]. - symfony/event-dispatcher v5.1.5 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 19 - Installation request for symfony/event-dispatcher-contracts v2.1.3 -> satisfiable by symfony/event-dispatcher-contracts[v2.1.3]. - symfony/event-dispatcher-contracts v2.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 20 - Installation request for symfony/finder v5.1.3 -> satisfiable by symfony/finder[v5.1.3]. - symfony/finder v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 21 - Installation request for symfony/http-foundation v5.1.5 -> satisfiable by symfony/http-foundation[v5.1.5]. - symfony/http-foundation v5.1.5 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 22 - Installation request for symfony/http-kernel v5.1.5 -> satisfiable by symfony/http-kernel[v5.1.5]. - symfony/http-kernel v5.1.5 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 23 - Installation request for symfony/mime v5.1.3 -> satisfiable by symfony/mime[v5.1.3]. - symfony/mime v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 24 - Installation request for symfony/process v5.1.3 -> satisfiable by symfony/process[v5.1.3]. - symfony/process v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 25 - Installation request for symfony/routing v5.1.3 -> satisfiable by symfony/routing[v5.1.3]. - symfony/routing v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 26 - Installation request for symfony/service-contracts v2.1.3 -> satisfiable by symfony/service-contracts[v2.1.3]. - symfony/service-contracts v2.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 27 - Installation request for symfony/string v5.1.3 -> satisfiable by symfony/string[v5.1.3]. - symfony/string v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 28 - Installation request for symfony/translation v5.1.3 -> satisfiable by symfony/translation[v5.1.3]. - symfony/translation v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 29 - Installation request for symfony/translation-contracts v2.1.3 -> satisfiable by symfony/translation-contracts[v2.1.3]. - symfony/translation-contracts v2.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 30 - Installation request for symfony/var-dumper v5.1.5 -> satisfiable by symfony/var-dumper[v5.1.5]. - symfony/var-dumper v5.1.5 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 31 - Installation request for barryvdh/laravel-ide-helper v2.7.0 -> satisfiable by barryvdh/laravel-ide-helper[v2.7.0]. - barryvdh/laravel-ide-helper v2.7.0 requires php >=7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 32 - Installation request for facade/ignition 2.3.5 -> satisfiable by facade/ignition[2.3.5]. - facade/ignition 2.3.5 requires php ^7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 33 - Installation request for mockery/mockery 1.4.1 -> satisfiable by mockery/mockery[1.4.1]. - mockery/mockery 1.4.1 requires php ^7.3 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 34 - Installation request for nunomaduro/collision v4.2.0 -> satisfiable by nunomaduro/collision[v4.2.0]. - nunomaduro/collision v4.2.0 requires php ^7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 35 - Installation request for phpdocumentor/reflection-common 2.2.0 -> satisfiable by phpdocumentor/reflection-common[2.2.0]. - phpdocumentor/reflection-common 2.2.0 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 36 - Installation request for phpdocumentor/reflection-docblock 5.2.0 -> satisfiable by phpdocumentor/reflection-docblock[5.2.0]. - phpdocumentor/reflection-docblock 5.2.0 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 37 - Installation request for phpdocumentor/type-resolver 1.3.0 -> satisfiable by phpdocumentor/type-resolver[1.3.0]. - phpdocumentor/type-resolver 1.3.0 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 38 - Installation request for phpspec/prophecy 1.11.1 -> satisfiable by phpspec/prophecy[1.11.1]. - phpspec/prophecy 1.11.1 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 39 - Installation request for phpunit/php-code-coverage 7.0.10 -> satisfiable by phpunit/php-code-coverage[7.0.10]. - phpunit/php-code-coverage 7.0.10 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 40 - Installation request for phpunit/phpunit 8.5.8 -> satisfiable by phpunit/phpunit[8.5.8]. - phpunit/phpunit 8.5.8 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 41 - Installation request for sebastian/global-state 3.0.0 -> satisfiable by sebastian/global-state[3.0.0]. - sebastian/global-state 3.0.0 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 42 - Installation request for sebastian/type 1.1.3 -> satisfiable by sebastian/type[1.1.3]. - sebastian/type 1.1.3 requires php ^7.2 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 43 - Installation request for symfony/filesystem v5.1.3 -> satisfiable by symfony/filesystem[v5.1.3]. - symfony/filesystem v5.1.3 requires php >=7.2.5 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 44 - Installation request for theseer/tokenizer 1.2.0 -> satisfiable by theseer/tokenizer[1.2.0]. - theseer/tokenizer 1.2.0 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. Problem 45 - doctrine/lexer 1.2.1 requires php ^7.2 || ^8.0 -> your PHP version (7.1.33) does not satisfy that requirement. - egulias/email-validator 2.1.18 requires doctrine/lexer ^1.0.1 -> satisfiable by doctrine/lexer[1.2.1]. - Installation request for egulias/email-validator 2.1.18 -> satisfiable by egulias/email-validator[2.1.18]. To enable extensions, verify that they are enabled in your .ini files: - /www/server/php/71/etc/php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. |
提高PHP版本即可,最好用PHP7.3及以上。 本文最后更新于2020年9月4日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时 […]