Python 3.8.0已经发布,但是我还找不到关于如何使用conda更新到python 3.8的任何文章-也许他们会等待正式发布?有什么建议么?
最新版本的python 2.7(2.7.13)包含一个unicodeobject.h使用该register关键字的标头.我的理解是C++ 17 删除了这个关键字.使用C++ 17编译此头文件时,会触发一系列警告,包括:
/opt/anaconda/include/python2.7/unicodeobject.h:534:24: warning: ISO C++1z does not allow ‘register’ storage class specifier [-Wregister]
register PyObject *obj, /* Object */
^~~
/opt/anaconda/include/python2.7/unicodeobject.h:553:24: warning: ISO C++1z does not allow ‘register’ storage class specifier [-Wregister]
register PyObject *obj /* Object */
^~~
/opt/anaconda/include/python2.7/unicodeobject.h:575:29: warning: ISO C++1z does not allow ‘register’ storage class specifier [-Wregister]
register const wchar_t *w, /* wchar_t buffer */
^
/opt/anaconda/include/python2.7/unicodeobject.h:593:23: warning: ISO C++1z does not allow ‘register’ storage class specifier …Run Code Online (Sandbox Code Playgroud) PyCharm / CLion是否支持激活用于执行给定python脚本的conda env?当前,当我将conda env配置为用于执行给定脚本的解释器时,PyCharm / CLion在执行脚本之前不会激活环境。如果不这样做,则不会应用Activate.d / env_vars。[sh | bat]中定义的任何环境变量设置。
在配置gitlab-ci来构建docker镜像并将它们推送到我的gitlab不安全的注册表时,我遇到了一些错误.我的gitlab-ci.yaml如下:
stages:
- build
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
CONTAINER_IMAGE: XXX:$CI_COMMIT_REF_NAME
# The insecure-registry flag
services:
- docker:dind
build_container:
image: docker:latest
stage: build
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
script:
- docker build --pull -t $CONTAINER_IMAGE .
- docker push $CONTAINER_IMAGE
Run Code Online (Sandbox Code Playgroud)
第一个错误是:
$ docker login -u gitlab-ci-token -p $CI_JOB_TOKEN myregistry.gitlab.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Warning: failed to get default registry endpoint from daemon (Cannot connect
to the Docker daemon …Run Code Online (Sandbox Code Playgroud) 我在docker容器中运行docker,可以在这里找到.另外,我从一个新的用户配置文件运行它,它没有定义容器本身定义的任何环境变量.给定docker配置,将调用用户主目录中定义的登录脚本.可以看出,其他线程上提出的解决方案已在此处实现,但在调试器启动时,gdb立即退出,如下所示:
During startup program exited with code 127.
我试图添加LD_LIBRARY_PATH到调试器env变量无效.valgrind可执行文件配置正确. SHELL已设定.二进制是64位,适当的.so可用.
作为参考,讨论此主题的其他类似线程:
如果没有即将推出的解决方案,我将创建配置和示例源,以使完整设置(不仅仅是环境)易于重现.