最近在玩seeed的一个板子,其中教程中有一个命令:pip install ./snowboy*.whl,但是我输入后就报错了,给大家看看错误提示,希望大佬可以解答一下;(在python的虚拟环境下运行)
Traceback (most recent call last): File "dingdang.py", line 154, in <module> level=logging.INFO) File "/usr/lib/python2.7/logging/__init__.py", line 1540, in basicConfig hdlr = FileHandler(filename, mode) File "/usr/lib/python2.7/logging/__init__.py", line 911, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 936, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 2] No such file or directory: '/home/pi/dingdang-robot/temp/dingdang.log'
No handlers could be found for logger "cmuclmtk"/usr/local/lib/python2.7/dist-packages/pydub/utils.py:165: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)Traceback (most recent call last): File "dingdang.py", line 154, in <module> level=logging.INFO) File "/usr/lib/python2.7/logging/__init__.py", line 1540, in basicConfig hdlr = FileHandler(filename, mode) File "/usr/lib/python2.7/logging/__init__.py", line 911, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 936, in _open stream = open(self.baseFilename, self.mode)IOError: [Errno 2] No such file or directory: '/home/pi/dingdang-robot/temp/dingdang.log'
Exception:Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run wb.build(autobuilding=True) File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url hashes=hashes File "/usr/lib/python2.7/dist-packages/pip/download.py", line 659, in unpack_http_url hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 882, in _download_http_url _download_url(resp, link, content_file, hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 605, in _download_url consume(downloaded_chunks) File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 870, in consume deque(iterator, maxlen=0) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 571, in written_chunks for chunk in chunks: File "/usr/lib/python2.7/dist-packages/pip/utils/ui.py", line 139, in iter for x in it: File "/usr/lib/python2.7/dist-packages/pip/download.py", line 560, in resp_read decode_content=False): File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 428, in stream for line in self.read_chunked(amt, decode_content=decode_content): File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 590, in read_chunked self._update_chunk_length() File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 106, in _update_chunk_length self._fp._close() File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 50, in _close self.__callback(self.__buf.getvalue()) File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/controller.py", line 275, in cache_response self.serializer.dumps(request, response, body=body), File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py", line 55, in dumps "body": _b64_encode_bytes(body), File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py", line 12, in _b64_encode_bytes return base64.b64encode(b).decode("ascii")MemoryError这到底怎么解决啊
打算用树莓派开发,板做一个小项目。买到的开发板除了芯片资料就没有其他了,网上的资源也相对比较少。我想提问的是,当拿到一个开发板,该如何从头开发一个项目?(其实也算不上开发,只是把其他板上原有的项目搬过来新板子罢了。)能大概说一下项目开发具体流程还有过程中要注意的点吗?
参考这个设置的,但是反向的,把“SwapAxes”和“InvertY”的两个参数改为0也不行?什么原因?Section "InputClass" Identifier "captouch" MatchProduct "ft6x06_ts" Option "SwapAxes" "1" Option "InvertY" "1" Option "Calibration" "0 320 0 240"EndSection
编译vscode源码时提示好几个node的库不存在,全部down下来之后还是无法正常编译,有谁编译成功过吗?
这一类Linux开发板的GPIO引脚驱动能力强吗?电流能达到多少?够驱动步进电动机吗?
请问树莓派3在安装Arch时。到了解压包的那一个步骤了,用的是bsdtar ,出现[root@localhost ARCH]# bsdtar -xpf ArchLinuxARM-rpi-3-latest.tar.gz -C rootbsdtar: could not chdir to 'root'请问各位如何解决这个问题,另外我是过直接用tar解压,但是好像没什么用。我真的很想安装Arch Linux阿!
新人求教,在树莓派中用python编程,如何连接树莓派外部的数据库,求详细的操作流程,谢谢各位大神。