运行时错误:无法启动redis

h7appiyu  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(605)

我正在尝试在linux服务器上使用ray[tune],我只是一个没有root权限的用户。
安装ray[tune]并运行python代码之后 from ray import tune ,我收到一条错误消息:

ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found

按照联机说明,我更改了环境变量:
LD_LIBRARY_PATH=/home/USERNAME/dependency/glibc-2.17/lib/:/lib64/:/usr/local/gcc-5.3.0/lib64/ /home/USERNAME/dependency/glibc-2.17/lib/ld-2.17.so /home/USERNAME/python3.8.6/bin/python 然后我就可以运行python代码了 from ray import tune .
但是当我在link中运行下面的代码时

from ray import tune

def objective(step, alpha, beta):
    return (0.1 + alpha * step / 100)**(-1) + beta * 0.1

def training_function(config):
    # Hyperparameters
    alpha, beta = config["alpha"], config["beta"]
    for step in range(10):
        # Iterative training function - can be any arbitrary training procedure.
        intermediate_score = objective(step, alpha, beta)
        # Feed the score back back to Tune.
        tune.report(mean_loss=intermediate_score)

analysis = tune.run(
    training_function,
    config={
        "alpha": tune.grid_search([0.001, 0.01, 0.1]),
        "beta": tune.choice([1, 2, 3])
    })

print("Best config: ", analysis.get_best_config(
    metric="mean_loss", mode="min"))

# Get a dataframe for analyzing trial results.

df = analysis.results_df

我有个错误: RuntimeError: Couldn't start Redis logs/redis.err表示:
thirdparty/redis/src/redis server:加载共享库时出错:\u vdso\u time:dlopen()的模式无效:参数无效

  • ray版本是1.0.0,python版本是3.8.6

有什么解决方法/失败的原因吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题