小编Jus*_*ick的帖子

Pipfile 哈希创建

我在使用 Pipenv 时遇到问题。我运行pipenv install --dev是为了从我的项目中的 Pipfile 安装一些依赖项。运行此命令后,Pipenv 会为某个依赖项生成一个 MD5 哈希值。错误是说不支持 MD5 但仍然会生成它。我没有在本地机器或任何配置文件中设置任何配置。我似乎无法确定这个问题。任何帮助是极大的赞赏。

[pipenv.exceptions.InstallError]: pip: error: Allowed hash algorithms for --hash are sha256, sha384, sha512.

pipfile.lock

{
    "_meta": {
        "hash": {
            "sha256": "7e0f1d75f7df19f9500f55bd2f1da163cb4a8c7f485aab61c521d70e3865a507"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.6"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "certain-dependency": {
            "hashes": [
                "md5:8faf2e4ff85c34b5d0c000c017f81f52",
                "md5:1508a7f05b17d292f7890b8c58a451cf",
   ],
            "version": "==11.10.20"
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

python hash dependencies python-3.x pipenv

9
推荐指数
1
解决办法
1250
查看次数

Python:为什么我收到AttributeError:__enter__

我没有重新分配open关键字,但仍然收到此错误。有任何建议或指导来纠正我的错误吗?

 with tempfile.mkdtemp() as test_dir:
        print(test_dir)
Run Code Online (Sandbox Code Playgroud)

AttributeError: __enter__

我也是python的新手,我很难理解这些概念。

python temporary-directory attributeerror contextmanager

2
推荐指数
1
解决办法
1250
查看次数

什么时候应该设置 $GOPATH 变量?

谁能解释一下何时设置 $GOPATH?我知道它位于默认位置 C:\Users\Username\go 中,但是如果我的所有编码项目都位于 Z:<codelocation> 中怎么办?

environment-variables go visual-studio-code gopath gopls

2
推荐指数
1
解决办法
3745
查看次数