Conda:无法从本地tar.bz2文件安装软件包

时间:2016-12-14 19:56:44

标签: python anaconda conda

我构建了自己的conda包,并生成了我的pack.tar.bz2文件。我试图从pack.tar.bz2文件在另一台机器上安装此软件包。

我跑了conda install path-to-pack.tar.bz2

我得到以下异常:

`$ C:\Anaconda\Scripts\conda-script.py install ./bin/pack.tar.bz2`

    Traceback (most recent call last):
      File "C:\Anaconda\lib\site-packages\conda\exceptions.py", line 479, in con
da_exception_handler
        return_value = func(*args, **kwargs)
      File "C:\Anaconda\lib\site-packages\conda\cli\main.py", line 145, in _main

        exit_code = args.func(args, p)
      File "C:\Anaconda\lib\site-packages\conda\cli\main_install.py", line 80, i
n execute
        install(args, parser, 'install')
      File "C:\Anaconda\lib\site-packages\conda\cli\install.py", line 209, in in
stall
        explicit(args.packages, prefix, verbose=not context.quiet)
      File "C:\Anaconda\lib\site-packages\conda\misc.py", line 175, in explicit
        index.update(get_index(**index_args))
      File "C:\Anaconda\lib\site-packages\conda\api.py", line 24, in get_index
        index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
      File "C:\Anaconda\lib\site-packages\conda\fetch.py", line 295, in fetch_in
dex
        for url in urls]
      File "C:\Anaconda\lib\site-packages\conda\fetch.py", line 75, in func
        res = f(*args, **kwargs)
      File "C:\Anaconda\lib\site-packages\conda\fetch.py", line 117, in fetch_re
podata
        timeout=(6.1, 60))
      File "C:\Anaconda\lib\site-packages\requests\sessions.py", line 501, in ge
t
        return self.request('GET', url, **kwargs)
      File "C:\Anaconda\lib\site-packages\requests\sessions.py", line 488, in re
quest
        resp = self.send(prep, **send_kwargs)
      File "C:\Anaconda\lib\site-packages\requests\sessions.py", line 641, in se
nd
        r.content
      File "C:\Anaconda\lib\site-packages\requests\models.py", line 781, in cont
ent
        self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or b
ytes()
      File "C:\Anaconda\lib\site-packages\requests\models.py", line 714, in gene
rate
        chunk = self.raw.read(chunk_size)
    AttributeError: 'exceptions.WindowsError' object has no attribute 'read'

请告诉我可以解决的问题。

0 个答案:

没有答案