安装RLPY(词法生成器)时出现问题。点安装

时间:2019-06-18 11:01:35

标签: python pip package

嘿,我正在尝试在pycharm软件包上安装RLPY,当我尝试从pycharm环境手动进行操作或进入cmd并使用:

时,都收到错误消息
var config = new ConfigurationBuilder().SetBasePath(context.FunctionAppDirectory)
                    .AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
                    .AddEnvironmentVariables()
                    .Build();

                // initialize the cosmosdb client
                using (DocumentClient client = new DocumentClient(new Uri(config["CosmosDB_Uri"]), config["CosmosDB_appKey"]))
                {
                    // Get the database self link
                    string selfLink = client.CreateDocumentCollectionQuery(
                                        UriFactory.CreateDatabaseUri(config["CosmosDB_DatabaseId"]))
                                            .Where(c => c.Id == config["CosmosDB_ContainerId"])
                                            .AsEnumerable()
                                            .FirstOrDefault()
                                            .SelfLink;

                    // Get the current offer for the collection
                    Offer offer = client.CreateOfferQuery().Where(r => r.ResourceLink == selfLink).AsEnumerable().SingleOrDefault();

                    // Get the current throughput from the offer
                    int throughputCurrent = (int)offer.GetPropertyValue<JObject>("content").GetValue("offerThroughput");
                    log.LogInformation(string.Format("Current provisioned throughput is: {0} RU", throughputCurrent.ToString()));

                    // Get the RU increment from AppSettings and parse to an int
                    if (int.TryParse(config["CosmosDB_RU"], out int RUIncrement))
                    {
                        a) create the new offer with the throughput increment added to the current throughput
                        int newThroughput = throughputCurrent + RUIncrement;
                        offer = new OfferV2(offer, newThroughput);

                        b) persist the changes
                        await client.ReplaceOfferAsync(offer);
                        log.LogInformation(string.Format("New provisioned througput: {0} RU", newThroughput.ToString()));
                        return new OkObjectResult("The collection's throughput was changed...");
                    }
                    else
                    {
                        c) if the throughputIncrement cannot be parsed return throughput not changed
                        return new BadRequestObjectResult("PARSE ERROR: The collection's throughput was not changed...");
                    }
                }

我收到此错误:

  

命令   “ c:\ users \ user1 \ appdata \ local \ programs \ python \ python37-32 \ python.exe   -u -c“导入设置工具,标记化; 文件 ='C:\ Users \ user1 \ AppData \ Local \ Temp \ pip-install-ahldtrdz \ rlpy \ setup.py'; f = getattr(标记化,   '打开',打开)(文件);代码= f.read()。replace('\ r \ n',   '\ n'); f.close(); exec(compile(code, file ,'exec')))“安装   --record C:\ Users \ user1 \ AppData \ Local \ Temp \ pip-record-9nsklqat \ install-record.txt   --single-version-externally-managed --compile“在C:\ Users \ anonr \ AppData \ Local \ Temp \ pip-install-ahldtrdz \ rlpy \

中失败,错误代码为1

您知道问题是什么吗?谢谢!

0 个答案:

没有答案