
踩坑日记
这个日记本是用来记录各种踩坑的时刻,专供python,linux中的一些踩坑行为!!
我就是DM
精通linux、python、shell、c、docker的各种hellow world!!!
展开
-
pycharm连接服务器文件上传失败:Failed to transfer file could not close the output stream for file
pyhcarm报错原创 2022-11-02 11:41:48 · 1861 阅读 · 1 评论 -
macos pip3 install pyltp: command ‘clang++‘ failed with exit status 1
系统:macos10.15.6python: python3.7.1npm: 7.15.1Make 3.81cmake 3.19.3各种环境及包我都没有刻意去修改版本,只要找对安装方法即可使用pip3 install pyltp在本地macbook安装哈工大的pyltp时,编译时报了以下错误:command ‘clang++’ failed with exit status 1,ERROR: Failed building wheel for pyltp;网上的回答有说pyltp不支持pyt原创 2021-11-26 11:19:05 · 950 阅读 · 0 评论 -
jupyter lab启动控制台错误信息:/Users/xx/.pyenv/dl_env/bin/jupyter: bad interpreter: /Users/xx/pyenv/dl_env/bi
1.背景:在某个python虚拟环境中启动jupyter lab出现no such file or directory,然后默认使用的环境是系统python环境。2.原因:创建虚拟环境的路径被我改动过,比如原始的环境路径是/Users/xx/pyenv/dl_env;之后因为个人的一些原因,将虚拟环境变量的路径改为/Users/xx/.pyenv/dl_env,但是/Users/xx/pyenv/dl_env/jupyter文件第一行解释器声明记录了原始的python路径为/Users/xx/pyen原创 2021-11-24 14:43:45 · 1065 阅读 · 0 评论 -
AttributeError: Can‘t get attribute ‘new_block‘ on <module ‘pandas.core.internals.blocks‘ from ‘/opt
pandas版本导致pickle读出异常又出现一个新的异常是因为pandas版本不同,生成的pickle不兼容的问题,本文用于记录异常1. AttributeError: Can't get attribute 'new_block' on <module 'pandas.core.internals.blocks' from '/opt/conda/lib/python3.7/site-packages/pandas/core/internals/blocks.py'>2. .原创 2021-10-28 11:34:42 · 4179 阅读 · 2 评论 -
mac 安装了phantomjs 2.5 提示:dyld: Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib
环境系统:macos catalina 10.15.6phantomjs 版本: 2.5本机默认webp版本:webp 0.6.0 生成bwebp.7.dylib$ phantomjs --versiondyld: Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib Referenced from: /usr/local/bin/phantomjs Reason: image not foundAbort tr原创 2021-06-27 16:39:41 · 257 阅读 · 0 评论 -
mac docker build images error: GPG error: https://mirrors.163.com/debian buster InRelease: At least
问题:改了dockerfile 想重新build镜像时,在mac os中怎么都不成功,错误如下图:折腾了一会,网上大神说是 docker dist 不够了,果不其然,狂删本地镜像腾出空间后,刷刷刷地就装成功了,怎么也没想到这个报错是与磁盘空间有关。大神相关回复:https://stackoverflow.com/questions/64439278/gpg-invalid-signature-error-while-running-apt-update-inside-arm32v7-ubuntu20-原创 2021-06-11 23:22:05 · 518 阅读 · 1 评论 -
brew install npm >Error: python@3.9: wrong number of arguments (given 1, expected 0)
问题笔记本环境:mac os catalina 10.15.6homebrew版本:Homebrew 2.7.5Homebrew/homebrew-core (git revision cbdbf6; last commit 2021-06-07)Homebrew/homebrew-cask (git revision fe5ca; last commit 2021-06-07)背景:手贱brew update了一版,然后:brew install node 报错:Error: pyth原创 2021-06-07 22:30:23 · 3282 阅读 · 0 评论 -
pip3 install 无法将包安装到虚拟环境,而是安装在python3默认环境中
背景:python3 安装了virtualenv 和 virtualenvwrapper用于管理虚拟环境,使用workon切换到虚拟环境中test_env, 然后执行pip3 install pandas发现pandas 安装到了python3默认环境中,而test_env中没有pandas原因:workon列出了WORKHOME下的各个虚拟环境,而其实这几个虚拟环境本来是在其他路径下生成的,后来被我给移动到WORKHOME路径下,因为之前生成的虚拟环境中bin文件下的activate和pip3 文件中都原创 2021-05-13 22:59:40 · 1914 阅读 · 5 评论 -
macos启动jupyter lab 错误:attributeerror: ‘extensionmanager‘ object has no attribute ‘_extensions‘
搜了网上各种各样的方法,包括jupyter lab 官方文档中说到需要安装node,这个方法对我不管用,因为当你用brew install node时,又会踩到版本问题的坑,直到我用蹩脚的英文google之后,在stack overflow找到一个在2021.05.12号的回答,这个刚好是在我踩坑的同一天。原因是:This is because of changes introduced in jupyter-server release two days ago (2021-05-10), see th原创 2021-05-13 22:40:02 · 2641 阅读 · 11 评论