济南养狗新规,金毛可以养了
2021年12月14日,济南召开了新规的说明会,上面提到重点区域禁养的犬只为:“肩高大于65厘米、体长大于100厘米” 这么看来,金毛应该不属于这个范围,一般金毛的身高是低于65厘米的,拉布拉多也是,这么看来,金毛和拉布拉多在济南是可以继续 […]
目前可用的消息推送服务有哪些?
1 Server酱 估计是最常用的服务了吧,之前一直免费,现在升级之后,免费版一天只能推送五条消息。不过很好用。 2 apprise 最近发现的一个很好的服务,整合了众多的软件接口,数量特别全。非常推荐使用。 https://github. […]
Linux删除NTFS分区内文件时提示unable to find or create trash dirctory
新装了一个16T的硬盘,格式化为NTFS,并设置了自动挂载,读写都没问题,但是删除文件的时候提示:unable to find or create trash dirctory 这个问题主要是因为当前目录下少了回收站的文件夹,所以加上就行。 […]
CondaUpgradeError: This environment has previously been operated on by a conda version that’s newer
今天装环境的时候conda提示:
1 2 3 4 5 6 7 8 9 10 |
Solving environment: failed CondaUpgradeError: This environment has previously been operated on by a conda version that's newer than the conda currently being used. A newer version of conda is required. target environment location: /home/ubuntu/anaconda3/envs/detect current conda version: 4.5.12 minimum conda version: 4.12 Update conda and try again. $ conda install -p "/home/ubuntu/anaconda3" "conda>=4.12" |
最新的anaconda安装包是2018年发布的,自带的conda版本是4.5.11,很明显版本有点低,所以我们需要手动升级,打开下面这个网站 […]
TypeError: ‘<' not supported between instances of 'str' and 'NoneType'
这个问题一般出现在升级conda版本之后,可以见该问题: 此时就可能会出现:
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 |
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1001, in __call__ return func(*args, **kwargs) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main exit_code = do_call(args, p) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 81, in do_call exit_code = getattr(module, func_name)(args, parser) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/cli/main_list.py", line 142, in execute show_channel_urls=context.show_channel_urls) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/cli/main_list.py", line 80, in print_packages show_channel_urls=show_channel_urls) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/cli/main_list.py", line 45, in list_packages installed = sorted(PrefixData(prefix, pip_interop_enabled=True).iter_records(), File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/core/prefix_data.py", line 116, in iter_records return itervalues(self._prefix_records) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/core/prefix_data.py", line 145, in _prefix_records return self.__prefix_records or self.load() or self.__prefix_records File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/core/prefix_data.py", line 69, in load self._load_site_packages() File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/core/prefix_data.py", line 258, in _load_site_packages python_record = read_python_record(self.prefix_path, af, python_pkg_record.version) File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 253, in read_python_record paths_tups = pydist.get_paths() File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/conda/common/pkg_formats/python.py", line 267, in get_paths records = sorted(concatv(records, ((pf, None, None) for pf in missing_pyc_files))) TypeError: '<' not supported between instances of 'str' and 'NoneType' `$ /home/ubuntu/anaconda3/bin/conda list` environment variables: ALL_PROXY=<set> CIO_TEST=<not set> CONDA_DEFAULT_ENV=detect CONDA_EXE=/home/ubuntu/anaconda3/bin/conda CONDA_MKL_INTERFACE_LAYER_BACKUP= CONDA_PREFIX=/home/ubuntu/anaconda3/envs/detect CONDA_PREFIX_1=/home/ubuntu/anaconda3 CONDA_PROMPT_MODIFIER=(detect) CONDA_PYTHON_EXE=/home/ubuntu/anaconda3/bin/python CONDA_ROOT=/home/ubuntu/anaconda3 CONDA_SHLVL=2 CPLUS_INCLUDE_PATH=:/home/ubuntu/bigdisk/part1/gsl2.4/include:/home/ubuntu/bigdisk/part1/ gsl2.4/include:/home/ubuntu/bigdisk/part1/gsl2.4/include:/home/ubuntu/ bigdisk/part1/gsl2.4/include CUDA_PATH=/home/ubuntu/anaconda3/envs/detect C_INCLUDE_PATH=:/home/ubuntu/bigdisk/part1/gsl2.4/include:/home/ubuntu/bigdisk/part1/ gsl2.4/include:/home/ubuntu/bigdisk/part1/gsl2.4/include:/home/ubuntu/ bigdisk/part1/gsl2.4/include GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64:::/home/ubuntu/bigdisk/part1/gsl2.4/lib::/h ome/ubuntu/bigdisk/part1/gsl2.4/lib::/home/ubuntu/bigdisk/part1/gsl2.4 /lib LIBRARY_PATH=::/home/ubuntu/bigdisk/part1/gsl2.4/lib::/home/ubuntu/bigdisk/part1/gs l2.4/lib::/home/ubuntu/bigdisk/part1/gsl2.4/lib::/home/ubuntu/bigdisk/ part1/gsl2.4/lib PATH=/home/ubuntu/anaconda3/envs/detect/bin:/home/ubuntu/bin:/home/ubuntu/. local/bin:/usr/local/cuda-11.2/bin:/home/ubuntu/anaconda3/bin:/usr/loc al/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/l ocal/games:/snap/bin REQUESTS_CA_BUNDLE=<not set> SSL_CERT_FILE=<not set> active environment : detect active env location : /home/ubuntu/anaconda3/envs/detect shell level : 2 user config file : /home/ubuntu/.condarc populated config files : /home/ubuntu/.condarc conda version : 4.6.1 conda-build version : 3.15.1 python version : 3.7.0.final.0 base environment : /home/ubuntu/anaconda3 (writable) channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64 http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64 http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch package cache : /home/ubuntu/anaconda3/pkgs /home/ubuntu/.conda/pkgs envs directories : /home/ubuntu/anaconda3/envs /home/ubuntu/.conda/envs platform : linux-64 user-agent : conda/4.6.1 requests/2.19.1 CPython/3.7.0 Linux/4.15.0-142-generic ubuntu/16.04.5 glibc/2.27 UID:GID : 1000:1000 netrc file : None offline mode : False An unexpected error has occurred. Conda has prepared the above report. If submitted, this report will be used by core maintainers to improve future releases of conda. Would you like conda to send this report to the core maintainers? |
这种一般是升级版本的时候一次性跳过太多了,例如升级前是4.5.11,那么最好是升级4.5.xx版 […]
一些手机扫描软件的效果对比
最近需要扫描一些文档,在手头没有扫描仪的情况下,只能用手机进行扫描。其实目前一些软件都挺不错的,但是各有各的优点,我最近测了一些,现在整理一下供以后自己使用。 这是原图,点击查看。 1 扫描全能王 鼎鼎有名的软件,收费,不过免费版够用,只是 […]
已经使用授权码仍然提示无法验证帐户名或密码。
mac自带的邮件客户端有个bug,那就是在添加账户的时候,即使已经添加了授权码,仍然会提示:无法验证帐户名或密码。 主要是有以下两个可能: 1,复制授权码的时候把空格也复制了,建议可以手动打 2,这是最坑爹的,在添加账户的时候,千万不要点登 […]
mac自带的邮件客户端占用内存和CPU的几个解决方案
这个现象的原因貌似有多个,汇总如下: 1,有人说是因为adguard for mac的过滤原因,建议手动将邮件客户端排除在过滤列表,或者直接删除该软件 2,按照如下步骤: 关闭iCloud同步 System Preferences-> […]
macOS如何设置一个窗口跨两个屏幕?
默认的窗口是只能在一个屏幕中显示的,一般来说,哪个屏幕中窗口的面积大,这个窗口就会在哪个屏幕中显示。 这对于Windows的小伙伴来说可能很别扭,解决方法如下: 打开系统偏好设置,找到调度中心: 去掉勾选“显示器具有单独的空间” 然后重启或 […]
Linux下批量解压时:filename not matched
当目录下有多个zip文件的时候,我们想批量解压这些文件,可能会出现错误:
1 2 3 4 5 |
ubuntu@part2:~/16T/mcj/$ unzip *.zip Archive: annotations-20220607T150243Z-001.zip caution: filename not matched: test2017-20220607T150425Z-001.zip caution: filename not matched: train2017.zip caution: filename not matched: val2017-20220607T085039Z-001.zip |
解决: 加上双引号即可,如:unzip “*.zip”