合集-Python

摘要:直接导入,然后直接打包名,有一定概率能够看到包的路径。 或者直接包名.__file__,100%能看到路径。 阅读全文
posted @ 2023-09-18 10:18 ZephyrYin 阅读(124) 评论(0) 推荐(0) 编辑
摘要:在路径A下的anaconda坏了。 重新安装一个anaconda3,放在B路径。安装完成后conda init A里面所有的env都移动到B路径新的anaconda下。直接mv A/anaconda3/envs B/anaconda3/envs,把A路径下的所有env都移动到新的anaconda下。 阅读全文
posted @ 2023-09-18 10:32 ZephyrYin 阅读(460) 评论(0) 推荐(0) 编辑
摘要:出现这种问题,需要修改pip路径下的第一行,一般来说这个第一行是个不合法的路径。 你需要修改到一个valid的路径 阅读全文
posted @ 2023-09-18 11:47 ZephyrYin 阅读(310) 评论(0) 推荐(0) 编辑
摘要:很多时候由于pip太多了,不知道自己当前使用的pip的位置在什么地方。可以pip -V 获得pip 22.0.4 from /user01/standalone_fate_install_1.11.2_release/env/python/venv/lib/python3.8/site-packag 阅读全文
posted @ 2023-09-19 09:43 ZephyrYin 阅读(171) 评论(0) 推荐(0) 编辑
摘要:nvidia apex官方网站: https://github.com/NVIDIA/apex nvidia apex官方文档:https://nvidia.github.io/apex/ 感觉其他的都不用看了。 pip install apex的那个apex并不是nvidia apex。 在git 阅读全文
posted @ 2023-09-19 10:22 ZephyrYin 阅读(387) 评论(0) 推荐(0) 编辑
摘要:可以自行查看flask 文档。 send file高效; send from directory安全,且适用于静态资源交互。 都是实现相同的功能的。 send_file send_from_directory 阅读全文
posted @ 2023-09-19 14:30 ZephyrYin 阅读(204) 评论(0) 推荐(0) 编辑
摘要:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/ 网页上面都是18 17年的老旧的,拖到最下面是23年的最新版。或者直接网页搜索latest,然后找2023年的,或者搜索2023年的,然后找latest。 阅读全文
posted @ 2023-09-26 10:21 ZephyrYin 阅读(1730) 评论(0) 推荐(0) 编辑
摘要:jit简介 pytorch的jit功能是为了生成类似于计算图的功能,能加快模型速度,便于部署,属于是取tensorflow之长补自己之短。 jit由来 之所以叫jit,是因为他仍然属于实时解释的范畴,但是能预先生成中间量,“审时度势”地实时运行。 参考 可以看这位帖子:https://zhuanla 阅读全文
posted @ 2023-10-16 15:14 ZephyrYin 阅读(75) 评论(0) 推荐(0) 编辑
摘要:官方文档:https://flask-jwt-extended.readthedocs.io/en/stable/ 阅读全文
posted @ 2023-10-17 17:28 ZephyrYin 阅读(74) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示