詹金斯无法找到virtualenv

时间:2017-07-17 13:20:44

标签: jenkins virtualenvwrapper

我想通过jenkins激活我的virtualenv。但我遇到了问题。

以下是命令

import dask
# +imports from the example above
dask.set_options(get=dask.get)  # disable multiprocessing

fh = joblib.load('X_csr.pkl', mmap_mode='r')

def func(x):
    if x.ndim == 0:
        # dask does some heuristics with dummy data, if the x is a 0d array
        # the sum command would fail
        return x
    res = np.asarray(x.sum(axis=1, keepdims=True))
    return res

Xd = da.from_array(fh, chunks=(2000))
results_new = Xd.map_blocks(func).compute()

我收到了这个错误,

cd /home/luvpreet/Desktop/vogo/influxdata
source /usr/local/bin/virtualenvwrapper.sh
workon influxdata
./manage.py test

shell可执行文件是+ echo 'ERROR: Environment '\''influxdata'\'' does not exist. Create it with '\''mkvirtualenv influxdata'\''.' ERROR: Environment 'influxdata' does not exist. Create it with 'mkvirtualenv influxdata'. + return 1

据说潮流数据不存在,但确实如此。

为什么显示这个?我怎么能运行我的virtualenv?

1 个答案:

答案 0 :(得分:0)

得到了答案,

由于jenkins用户主文件夹为clear

所以,它正在查看from pyftpdlib import ftpserver HOSTNAME = "localhost" PORT = 5555 authorizer = ftpserver.DummyAuthorizer() authorizer.add_user("papakri", "dancinghotdogs", "/Users/alexandrospapakribopoulos/Documents/Programming") authorizer.anonymous("/Users/alexandrospapakribopoulos/Documents/Programming") handler = ftpserver.FTPHandler handler.authorizer = authorizer connection = (HOSTNAME, PORT) ftpd = ftpsserver.FTPServer(connection, handler) ftpd.serve_forever() 而不是其他用户主目录。

所以,首先我将目录更改为其他用户的hme文件夹,然后激活我现有的virtualenv。

/var/lib/jenkins